2021-04-08 13:55:12 +03:00
|
|
|
---
|
|
|
|
'version': 2
|
|
|
|
'plan':
|
2023-07-03 14:10:40 +03:00
|
|
|
'project-key': 'AGH'
|
|
|
|
'key': 'AHBRTSPECS'
|
|
|
|
'name': 'AdGuard Home - Build and run tests'
|
2021-04-08 13:55:12 +03:00
|
|
|
'variables':
|
2024-03-06 18:33:53 +03:00
|
|
|
'dockerGo': 'adguard/golang-ubuntu:8.1'
|
|
|
|
'channel': 'development'
|
2021-04-08 13:55:12 +03:00
|
|
|
|
|
|
|
'stages':
|
2023-07-03 14:10:40 +03:00
|
|
|
- 'Tests':
|
|
|
|
'manual': false
|
|
|
|
'final': false
|
|
|
|
'jobs':
|
|
|
|
- 'Test'
|
2021-04-08 13:55:12 +03:00
|
|
|
|
2023-09-07 17:13:48 +03:00
|
|
|
- 'Artifact':
|
|
|
|
manual: false
|
|
|
|
final: false
|
|
|
|
jobs:
|
|
|
|
- 'Artifact'
|
|
|
|
|
2021-04-08 13:55:12 +03:00
|
|
|
'Test':
|
2023-07-03 14:10:40 +03:00
|
|
|
'docker':
|
|
|
|
'image': '${bamboo.dockerGo}'
|
|
|
|
'volumes':
|
|
|
|
'${system.YARN_DIR}': '${bamboo.cacheYarn}'
|
|
|
|
'${system.GO_CACHE_DIR}': '${bamboo.cacheGo}'
|
|
|
|
'${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}'
|
|
|
|
'key': 'TEST'
|
|
|
|
'other':
|
|
|
|
'clean-working-dir': true
|
|
|
|
'tasks':
|
|
|
|
- 'checkout':
|
|
|
|
'force-clean-build': true
|
|
|
|
- 'script':
|
|
|
|
'interpreter': 'SHELL'
|
|
|
|
'scripts':
|
|
|
|
- |
|
|
|
|
#!/bin/sh
|
2021-04-08 13:55:12 +03:00
|
|
|
|
2023-07-03 14:10:40 +03:00
|
|
|
set -e -f -u -x
|
2021-04-08 13:55:12 +03:00
|
|
|
|
2023-07-03 14:10:40 +03:00
|
|
|
make VERBOSE=1 ci go-tools lint
|
|
|
|
'final-tasks':
|
|
|
|
- 'clean'
|
|
|
|
'requirements':
|
|
|
|
- 'adg-docker': 'true'
|
2021-04-08 13:55:12 +03:00
|
|
|
|
2023-09-07 17:13:48 +03:00
|
|
|
'Artifact':
|
|
|
|
'docker':
|
|
|
|
'image': '${bamboo.dockerGo}'
|
|
|
|
'volumes':
|
|
|
|
'${system.GO_CACHE_DIR}': '${bamboo.cacheGo}'
|
|
|
|
'${system.GO_PKG_CACHE_DIR}': '${bamboo.cacheGoPkg}'
|
|
|
|
'key': 'ART'
|
|
|
|
'other':
|
|
|
|
'clean-working-dir': true
|
|
|
|
'tasks':
|
|
|
|
- 'checkout':
|
|
|
|
'force-clean-build': true
|
|
|
|
- 'script':
|
|
|
|
'interpreter': 'SHELL'
|
|
|
|
'scripts':
|
|
|
|
- |-
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e -f -u -x
|
|
|
|
|
|
|
|
# Explicitly checkout the revision that we need.
|
|
|
|
git checkout "${bamboo.repository.revision.number}"
|
|
|
|
|
|
|
|
make\
|
|
|
|
ARCH="amd64"\
|
|
|
|
OS="windows darwin linux"\
|
2024-03-06 18:33:53 +03:00
|
|
|
CHANNEL=${bamboo.channel}\
|
2023-09-07 17:13:48 +03:00
|
|
|
SIGN=0\
|
|
|
|
PARALLELISM=1\
|
|
|
|
VERBOSE=2\
|
|
|
|
build-release
|
|
|
|
'artifacts':
|
|
|
|
- 'name': 'AdGuardHome_windows_amd64'
|
|
|
|
'pattern': 'dist/AdGuardHome_windows_amd64.zip'
|
|
|
|
'shared': true
|
|
|
|
'required': true
|
|
|
|
- 'name': 'AdGuardHome_darwin_amd64'
|
|
|
|
'pattern': 'dist/AdGuardHome_darwin_amd64.zip'
|
|
|
|
'shared': true
|
|
|
|
'required': true
|
|
|
|
- 'name': 'AdGuardHome_linux_amd64'
|
|
|
|
'pattern': 'dist/AdGuardHome_linux_amd64.tar.gz'
|
|
|
|
'shared': true
|
|
|
|
'required': true
|
|
|
|
'requirements':
|
|
|
|
- 'adg-docker': 'true'
|
|
|
|
|
2021-04-08 13:55:12 +03:00
|
|
|
'branches':
|
2023-07-03 14:10:40 +03:00
|
|
|
'create': 'for-pull-request'
|
|
|
|
'delete':
|
|
|
|
'after-deleted-days': 1
|
|
|
|
'after-inactive-days': 5
|
|
|
|
'integration':
|
|
|
|
'push-on-success': false
|
|
|
|
'merge-from': 'AdGuard Home - Build and run tests'
|
|
|
|
'link-to-jira': true
|
2021-04-08 13:55:12 +03:00
|
|
|
|
|
|
|
'notifications':
|
2023-07-03 14:10:40 +03:00
|
|
|
- 'events':
|
|
|
|
- 'plan-status-changed'
|
|
|
|
'recipients':
|
|
|
|
- 'webhook':
|
|
|
|
'name': 'Build webhook'
|
|
|
|
'url': 'http://prod.jirahub.service.eu.consul/v1/webhook/bamboo'
|
2021-04-08 13:55:12 +03:00
|
|
|
|
|
|
|
'labels': []
|
|
|
|
'other':
|
2023-07-03 14:10:40 +03:00
|
|
|
'concurrent-build-plugin': 'system-default'
|
2024-03-06 18:33:53 +03:00
|
|
|
|
|
|
|
'branch-overrides':
|
|
|
|
# rc-vX.Y.Z branches are the release candidate branches. They are created
|
|
|
|
# from the release branch and are used to build the release candidate
|
|
|
|
# images.
|
|
|
|
- '^rc-v[0-9]+\.[0-9]+\.[0-9]+':
|
|
|
|
# Build betas on release branches manually.
|
|
|
|
'triggers': []
|
|
|
|
# Set the default release channel on the release branch to beta, as we
|
|
|
|
# may need to build a few of these.
|
|
|
|
'variables':
|
|
|
|
'dockerGo': 'adguard/golang-ubuntu:8.1'
|
|
|
|
'channel': 'candidate'
|