Pull request 2722: AGDNS-4274-explicitly-checkout-the-revision-in-ci
Some checks failed
build / test (macOS-latest) (push) Has been cancelled
build / test (ubuntu-latest) (push) Has been cancelled
build / test (windows-latest) (push) Has been cancelled
lint / go-lint (push) Has been cancelled
lint / eslint (push) Has been cancelled
build / build-release (push) Has been cancelled
build / notify (push) Has been cancelled
lint / notify (push) Has been cancelled

Squashed commit of the following:

commit c4383a8d15
Author: Maksim Kazantsev <m.kazantsev@adguard.com>
Date:   Fri Jul 17 15:45:25 2026 +0300

    bamboo-specs: explicitly checkout the revision;
This commit is contained in:
Maksim Kazantsev 2026-07-17 14:30:04 +00:00
parent ef585d45cd
commit 2961664cbe
2 changed files with 12 additions and 0 deletions

View file

@ -151,6 +151,12 @@
set -e -f -u -x
# The version.sh script queries the current state of the git
# repository, so we must explicitly checkout the revision that
# triggered the build to prevent race conditions when the master
# branch changes while this build is running.
git checkout "${bamboo_repository_revision_number}"
# Install Qemu, create builder.
docker version -f '{{ .Server.Experimental }}'
docker buildx rm buildx-builder || :

View file

@ -171,6 +171,12 @@
set -e -f -u -x
# The version.sh script queries the current state of the git
# repository, so we must explicitly checkout the revision that
# triggered the build to prevent race conditions when the master
# branch changes while this build is running.
git checkout "${bamboo_repository_revision_number}"
version="$(env CHANNEL=${bamboo_channel} sh ./scripts/make/version.sh)"
readonly version