diff --git a/.buildkite/scripts/steps/integration_tests.sh b/.buildkite/scripts/steps/integration_tests.sh index a9ad2572ef7..377ada8ae4e 100755 --- a/.buildkite/scripts/steps/integration_tests.sh +++ b/.buildkite/scripts/steps/integration_tests.sh @@ -4,19 +4,22 @@ set -euxo pipefail source .buildkite/scripts/common.sh # Override the agent package version using a string with format .. -# NOTE: use only after version bump when the new version is not yet available -PINNED_AGENT_PACKAGE_VERSION="8.10.2" +# NOTE: use only after version bump when the new version is not yet available, for example: +# OVERRIDE_AGENT_PACKAGE_VERSION="8.10.3" +OVERRIDE_AGENT_PACKAGE_VERSION="" -if [[ -n "$PINNED_AGENT_PACKAGE_VERSION" ]]; then -PINNED_AGENT_VERSION=${PINNED_AGENT_PACKAGE_VERSION}"-SNAPSHOT" +if [[ -n "$OVERRIDE_AGENT_PACKAGE_VERSION" ]]; then + OVERRIDE_TEST_AGENT_VERSION=${OVERRIDE_AGENT_PACKAGE_VERSION}"-SNAPSHOT" +else + OVERRIDE_TEST_AGENT_VERSION="" fi # PACKAGE -AGENT_PACKAGE_VERSION="${PINNED_AGENT_PACKAGE_VERSION}" DEV=true EXTERNAL=true SNAPSHOT=true PLATFORMS=linux/amd64,linux/arm64 PACKAGES=tar.gz mage package +AGENT_PACKAGE_VERSION="${OVERRIDE_AGENT_PACKAGE_VERSION}" DEV=true EXTERNAL=true SNAPSHOT=true PLATFORMS=linux/amd64,linux/arm64 PACKAGES=tar.gz mage package # Run integration tests set +e # Use 8.10.2-SNAPSHOT until the first 8.10.3-SNAPSHOT is produced. -AGENT_VERSION="${PINNED_AGENT_VERSION}" TEST_INTEG_AUTH_ESS_REGION=azure-eastus2 TEST_INTEG_CLEAN_ON_EXIT=true SNAPSHOT=true mage integration:test +AGENT_VERSION="${OVERRIDE_TEST_AGENT_VERSION}" TEST_INTEG_AUTH_ESS_REGION=azure-eastus2 TEST_INTEG_CLEAN_ON_EXIT=true SNAPSHOT=true mage integration:test TESTS_EXIT_STATUS=$? set -e