2022-01-03 19:36:51 +03:00
|
|
|
|
# Copyright (c) 2022 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
|
2021-01-04 22:45:30 +03:00
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
|
|
jobs:
|
2021-05-19 15:24:47 +03:00
|
|
|
|
|
2022-11-15 16:07:41 +03:00
|
|
|
|
- template: fix-bazel-cache.yml
|
2021-05-19 15:24:47 +03:00
|
|
|
|
|
2021-01-04 22:45:30 +03:00
|
|
|
|
- job: git_sha
|
|
|
|
|
pool:
|
2021-01-27 19:38:34 +03:00
|
|
|
|
name: 'ubuntu_20_04'
|
2021-01-04 22:45:30 +03:00
|
|
|
|
demands: assignment -equals default
|
|
|
|
|
steps:
|
2021-02-09 13:42:34 +03:00
|
|
|
|
- template: bash-lib.yml
|
|
|
|
|
parameters:
|
|
|
|
|
var_name: bash-lib
|
2021-01-04 22:45:30 +03:00
|
|
|
|
- bash: |
|
|
|
|
|
set -euo pipefail
|
2021-02-09 13:42:34 +03:00
|
|
|
|
source $(bash-lib)
|
2021-01-04 22:45:30 +03:00
|
|
|
|
if [ "$(Build.Reason)" == "PullRequest" ]; then
|
2021-02-09 13:42:34 +03:00
|
|
|
|
setvar branch "$(git rev-parse HEAD^2)"
|
|
|
|
|
setvar main "$(git rev-parse HEAD^1)"
|
|
|
|
|
setvar fork_point "$(git merge-base $(git rev-parse HEAD^1) $(git rev-parse HEAD^2))"
|
2021-01-04 22:45:30 +03:00
|
|
|
|
else
|
2021-02-09 13:42:34 +03:00
|
|
|
|
setvar branch "$(git rev-parse HEAD)"
|
|
|
|
|
setvar main "$(git rev-parse HEAD^1)"
|
|
|
|
|
setvar fork_point "$(git rev-parse HEAD^1)"
|
2021-01-04 22:45:30 +03:00
|
|
|
|
fi
|
|
|
|
|
name: out
|
|
|
|
|
|
|
|
|
|
- job: Linux
|
|
|
|
|
dependsOn:
|
|
|
|
|
- check_for_release
|
|
|
|
|
variables:
|
2021-06-11 13:16:08 +03:00
|
|
|
|
- name: release_sha
|
|
|
|
|
value: $[ dependencies.check_for_release.outputs['out.release_sha'] ]
|
|
|
|
|
- name: release_tag
|
|
|
|
|
value: $[ coalesce(dependencies.check_for_release.outputs['out.release_tag'], '0.0.0') ]
|
|
|
|
|
- name: trigger_sha
|
|
|
|
|
value: $[ dependencies.check_for_release.outputs['out.trigger_sha'] ]
|
|
|
|
|
- name: is_release
|
|
|
|
|
value: $[ dependencies.check_for_release.outputs['out.is_release'] ]
|
|
|
|
|
- template: job-variables.yml
|
2021-01-04 22:45:30 +03:00
|
|
|
|
timeoutInMinutes: 360
|
|
|
|
|
pool:
|
2021-01-27 19:38:34 +03:00
|
|
|
|
name: 'ubuntu_20_04'
|
2021-01-04 22:45:30 +03:00
|
|
|
|
demands: assignment -equals default
|
|
|
|
|
steps:
|
|
|
|
|
- template: report-start.yml
|
|
|
|
|
- checkout: self
|
|
|
|
|
- bash: |
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
git checkout $(release_sha)
|
|
|
|
|
name: checkout_release
|
2021-03-12 09:13:26 +03:00
|
|
|
|
condition: and(succeeded(), eq(variables.is_release, 'true'))
|
2021-01-20 19:22:53 +03:00
|
|
|
|
- template: clean-up.yml
|
2021-01-04 22:45:30 +03:00
|
|
|
|
- template: build-unix.yml
|
|
|
|
|
parameters:
|
|
|
|
|
release_tag: $(release_tag)
|
|
|
|
|
name: 'linux'
|
|
|
|
|
is_release: variables.is_release
|
2021-06-11 13:16:08 +03:00
|
|
|
|
- template: upload-bazel-metrics.yml
|
2021-01-04 22:45:30 +03:00
|
|
|
|
- bash: |
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
eval "$(./dev-env/bin/dade-assist)"
|
|
|
|
|
bazel build //release:release
|
|
|
|
|
./bazel-bin/release/release --release-dir "$(mktemp -d)"
|
|
|
|
|
condition: and(succeeded(), ne(variables['is_release'], 'true'))
|
2021-01-11 16:30:51 +03:00
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
|
inputs:
|
|
|
|
|
pathtoPublish: 'bazel-bin/docs/html.tar.gz'
|
|
|
|
|
artifactName: 'Docs bundle'
|
2021-01-04 22:45:30 +03:00
|
|
|
|
- template: tell-slack-failed.yml
|
|
|
|
|
parameters:
|
|
|
|
|
trigger_sha: '$(trigger_sha)'
|
|
|
|
|
- template: report-end.yml
|
|
|
|
|
|
2022-08-16 08:54:58 +03:00
|
|
|
|
- template: macOS.yml
|
|
|
|
|
parameters:
|
2022-08-19 14:09:03 +03:00
|
|
|
|
job_name: macOS
|
|
|
|
|
name: macos
|
2022-08-16 08:54:58 +03:00
|
|
|
|
assignment: default
|
|
|
|
|
|
|
|
|
|
- template: macOS.yml
|
|
|
|
|
parameters:
|
2022-08-19 14:09:03 +03:00
|
|
|
|
job_name: m1
|
2022-08-16 08:54:58 +03:00
|
|
|
|
name: m1
|
|
|
|
|
assignment: m1-builds
|
2021-01-04 22:45:30 +03:00
|
|
|
|
|
|
|
|
|
- job: Windows
|
|
|
|
|
dependsOn:
|
|
|
|
|
- check_for_release
|
|
|
|
|
variables:
|
2021-06-11 13:16:08 +03:00
|
|
|
|
- name: release_sha
|
|
|
|
|
value: $[ dependencies.check_for_release.outputs['out.release_sha'] ]
|
|
|
|
|
- name: release_tag
|
|
|
|
|
value: $[ coalesce(dependencies.check_for_release.outputs['out.release_tag'], '0.0.0') ]
|
|
|
|
|
- name: trigger_sha
|
|
|
|
|
value: $[ dependencies.check_for_release.outputs['out.trigger_sha'] ]
|
|
|
|
|
- name: is_release
|
|
|
|
|
value: $[ dependencies.check_for_release.outputs['out.is_release'] ]
|
2022-01-25 18:29:57 +03:00
|
|
|
|
- name: is_split_release
|
|
|
|
|
value: $[ dependencies.check_for_release.outputs['out.split_release_process'] ]
|
2021-06-11 13:16:08 +03:00
|
|
|
|
- name: skip_tests
|
|
|
|
|
value: $[ and(eq(variables.is_release, 'true'),
|
2021-06-03 12:24:52 +03:00
|
|
|
|
eq(variables['Build.SourceBranchName'], 'main')) ]
|
2021-06-11 13:16:08 +03:00
|
|
|
|
- template: job-variables.yml
|
2021-01-04 22:45:30 +03:00
|
|
|
|
timeoutInMinutes: 360
|
|
|
|
|
pool:
|
|
|
|
|
name: 'windows-pool'
|
|
|
|
|
demands: assignment -equals default
|
|
|
|
|
steps:
|
|
|
|
|
- template: report-start.yml
|
|
|
|
|
- checkout: self
|
2022-01-26 17:46:35 +03:00
|
|
|
|
- bash: |
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
|
|
for f in $(find /d/a/SourceRootMapping -type f); do
|
|
|
|
|
echo "-----"
|
|
|
|
|
echo $f
|
|
|
|
|
echo "-----"
|
|
|
|
|
cat $f
|
|
|
|
|
echo "-----"
|
|
|
|
|
done
|
2022-02-14 21:49:32 +03:00
|
|
|
|
name: workdirs
|
2021-01-04 22:45:30 +03:00
|
|
|
|
- bash: |
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
git checkout $(release_sha)
|
|
|
|
|
name: checkout_release
|
2021-03-12 09:13:26 +03:00
|
|
|
|
condition: and(succeeded(), eq(variables.is_release, 'true'))
|
2021-01-04 22:45:30 +03:00
|
|
|
|
- template: build-windows.yml
|
|
|
|
|
parameters:
|
|
|
|
|
release_tag: $(release_tag)
|
2021-06-03 12:24:52 +03:00
|
|
|
|
# Azure pipeline’s variable and parameter expansion is utter garbage.
|
|
|
|
|
# For whatever reason `env` values only seem to be able to use macro syntax
|
|
|
|
|
# and not runtime expression. is_release however is a runtime variable
|
|
|
|
|
# so template conditions won’t work. Therefore we define the variable here
|
|
|
|
|
# with a runtime expression, set the parameter to the (unexpanded) string "$(skip_tests)"
|
|
|
|
|
# and then splice that in via a template parameter.
|
|
|
|
|
skip_tests: $(skip_tests)
|
2021-01-04 22:45:30 +03:00
|
|
|
|
is_release: variables.is_release
|
2022-01-26 16:57:39 +03:00
|
|
|
|
is_split_release: $(is_split_release)
|
2021-06-11 13:16:08 +03:00
|
|
|
|
- template: upload-bazel-metrics.yml
|
2021-01-04 22:45:30 +03:00
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
|
condition: succeededOrFailed()
|
|
|
|
|
inputs:
|
2021-03-11 13:44:02 +03:00
|
|
|
|
pathtoPublish: '$(Build.StagingDirectory)/logs'
|
2021-01-04 22:45:30 +03:00
|
|
|
|
artifactName: 'Bazel Logs'
|
|
|
|
|
- template: tell-slack-failed.yml
|
|
|
|
|
parameters:
|
|
|
|
|
trigger_sha: '$(trigger_sha)'
|
|
|
|
|
- template: report-end.yml
|
|
|
|
|
|
2021-02-05 19:36:56 +03:00
|
|
|
|
- job: Linux_oracle
|
|
|
|
|
timeoutInMinutes: 360
|
|
|
|
|
pool:
|
|
|
|
|
name: 'ubuntu_20_04'
|
|
|
|
|
demands: assignment -equals default
|
|
|
|
|
steps:
|
|
|
|
|
- template: report-start.yml
|
|
|
|
|
- checkout: self
|
|
|
|
|
- bash: ci/dev-env-install.sh
|
|
|
|
|
displayName: 'Build/Install the Developer Environment'
|
|
|
|
|
- template: clean-up.yml
|
|
|
|
|
- bash: |
|
|
|
|
|
source dev-env/lib/ensure-nix
|
|
|
|
|
ci/dev-env-push.py
|
|
|
|
|
displayName: 'Push Developer Environment build results'
|
2021-03-12 09:13:26 +03:00
|
|
|
|
condition: and(succeeded(), eq(variables['System.PullRequest.IsFork'], 'False'))
|
2021-02-05 19:36:56 +03:00
|
|
|
|
env:
|
|
|
|
|
# to upload to the Nix cache
|
|
|
|
|
GOOGLE_APPLICATION_CREDENTIALS_CONTENT: $(GOOGLE_APPLICATION_CREDENTIALS_CONTENT)
|
|
|
|
|
NIX_SECRET_KEY_CONTENT: $(NIX_SECRET_KEY_CONTENT)
|
|
|
|
|
- bash: ci/configure-bazel.sh
|
|
|
|
|
displayName: 'Configure Bazel'
|
|
|
|
|
env:
|
|
|
|
|
IS_FORK: $(System.PullRequest.IsFork)
|
|
|
|
|
# to upload to the bazel cache
|
|
|
|
|
GOOGLE_APPLICATION_CREDENTIALS_CONTENT: $(GOOGLE_APPLICATION_CREDENTIALS_CONTENT)
|
|
|
|
|
- bash: |
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
eval "$(./dev-env/bin/dade-assist)"
|
2021-03-26 16:43:04 +03:00
|
|
|
|
docker login --username "$DOCKER_LOGIN" --password "$DOCKER_PASSWORD"
|
2021-08-17 16:28:26 +03:00
|
|
|
|
IMAGE=$(cat ci/oracle_image)
|
2021-03-26 16:43:04 +03:00
|
|
|
|
docker pull $IMAGE
|
2021-02-05 19:36:56 +03:00
|
|
|
|
# Cleanup stray containers that might still be running from
|
|
|
|
|
# another build that didn’t get shut down cleanly.
|
|
|
|
|
docker rm -f oracle || true
|
2021-03-29 17:56:30 +03:00
|
|
|
|
# Oracle does not like if you connect to it via localhost if it’s running in the container.
|
|
|
|
|
# Interestingly it works if you use the external IP of the host so the issue is
|
|
|
|
|
# not the host it is listening on (it claims for that to be 0.0.0.0).
|
|
|
|
|
# --network host is a cheap escape hatch for this.
|
|
|
|
|
docker run -d --rm --name oracle --network host -e ORACLE_PWD=$ORACLE_PWD $IMAGE
|
2021-02-05 19:36:56 +03:00
|
|
|
|
function cleanup() {
|
|
|
|
|
docker rm -f oracle
|
|
|
|
|
}
|
|
|
|
|
trap cleanup EXIT
|
|
|
|
|
testConnection() {
|
2021-04-28 07:10:43 +03:00
|
|
|
|
docker exec oracle bash -c 'sqlplus -L '"$ORACLE_USERNAME"'/'"$ORACLE_PWD"'@//localhost:'"$ORACLE_PORT"'/ORCLPDB1 <<< "select * from dba_users;"; exit $?' >/dev/null
|
2021-02-05 19:36:56 +03:00
|
|
|
|
}
|
|
|
|
|
until testConnection
|
|
|
|
|
do
|
|
|
|
|
echo "Could not connect to Oracle, trying again..."
|
|
|
|
|
sleep 1
|
|
|
|
|
done
|
2021-02-17 11:50:35 +03:00
|
|
|
|
# Actually run some tests
|
2021-10-27 17:01:00 +03:00
|
|
|
|
# Note: Oracle tests all run sequentially because they all access the same Oracle instance,
|
|
|
|
|
# and we sometimes observe transient connection issues when running tests in parallel.
|
2021-04-28 07:10:43 +03:00
|
|
|
|
bazel test \
|
|
|
|
|
--config=oracle \
|
2021-10-27 17:01:00 +03:00
|
|
|
|
--test_strategy=exclusive \
|
2022-01-26 14:28:44 +03:00
|
|
|
|
--test_tag_filters=+oracle \
|
|
|
|
|
//...
|
2021-11-01 14:19:01 +03:00
|
|
|
|
|
|
|
|
|
oracle_logs=$(Build.StagingDirectory)/oracle-logs
|
|
|
|
|
mkdir $oracle_logs
|
|
|
|
|
for path in $(docker exec oracle bash -c 'find /opt/oracle/diag/rdbms/ -type f'); do
|
|
|
|
|
# $path starts with a slash
|
|
|
|
|
mkdir -p $(dirname ${oracle_logs}${path})
|
|
|
|
|
docker exec oracle bash -c "cat $path" > ${oracle_logs}${path}
|
|
|
|
|
done
|
2021-02-05 19:36:56 +03:00
|
|
|
|
env:
|
2021-03-26 16:43:04 +03:00
|
|
|
|
DOCKER_LOGIN: $(DOCKER_LOGIN)
|
|
|
|
|
DOCKER_PASSWORD: $(DOCKER_PASSWORD)
|
2021-02-05 19:36:56 +03:00
|
|
|
|
displayName: 'Build'
|
2021-03-12 09:13:26 +03:00
|
|
|
|
condition: and(succeeded(), eq(variables['System.PullRequest.IsFork'], 'False'))
|
2021-07-29 13:58:44 +03:00
|
|
|
|
|
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
|
condition: failed()
|
|
|
|
|
displayName: 'Publish the bazel test logs'
|
|
|
|
|
inputs:
|
|
|
|
|
pathtoPublish: 'bazel-testlogs/'
|
|
|
|
|
artifactName: 'Test logs Oracle'
|
|
|
|
|
|
2021-11-01 14:19:01 +03:00
|
|
|
|
- task: PublishBuildArtifacts@1
|
|
|
|
|
condition: failed()
|
|
|
|
|
displayName: 'Publish Oracle image logs'
|
|
|
|
|
inputs:
|
|
|
|
|
pathtoPublish: '$(Build.StagingDirectory)/oracle-logs'
|
|
|
|
|
artifactName: 'Oracle image logs'
|
|
|
|
|
|
2021-02-05 19:36:56 +03:00
|
|
|
|
- template: tell-slack-failed.yml
|
|
|
|
|
parameters:
|
|
|
|
|
trigger_sha: '$(trigger_sha)'
|
|
|
|
|
- template: report-end.yml
|
|
|
|
|
|
2021-08-17 19:59:12 +03:00
|
|
|
|
- job: platform_independence_test
|
2021-11-10 15:55:33 +03:00
|
|
|
|
condition: and(succeeded(),
|
|
|
|
|
eq(dependencies.check_for_release.outputs['out.is_release'], 'false'))
|
2021-08-17 19:59:12 +03:00
|
|
|
|
dependsOn:
|
|
|
|
|
- Windows
|
|
|
|
|
- Linux
|
|
|
|
|
- macOS
|
|
|
|
|
pool:
|
|
|
|
|
name: 'ubuntu_20_04'
|
|
|
|
|
demands: assignment -equals default
|
|
|
|
|
steps:
|
|
|
|
|
- checkout: self
|
|
|
|
|
- bash: ci/dev-env-install.sh
|
|
|
|
|
displayName: 'Build/Install the Developer Environment'
|
|
|
|
|
- task: DownloadPipelineArtifact@2
|
|
|
|
|
inputs:
|
|
|
|
|
artifactName: platform-independence-dar-linux
|
|
|
|
|
targetPath: $(Build.StagingDirectory)/platform-independence/linux/
|
|
|
|
|
- task: DownloadPipelineArtifact@2
|
|
|
|
|
inputs:
|
|
|
|
|
artifactName: platform-independence-dar-windows
|
|
|
|
|
targetPath: $(Build.StagingDirectory)/platform-independence/windows/
|
|
|
|
|
- task: DownloadPipelineArtifact@2
|
|
|
|
|
inputs:
|
|
|
|
|
artifactName: platform-independence-dar-macos
|
|
|
|
|
targetPath: $(Build.StagingDirectory)/platform-independence/macos/
|
|
|
|
|
- bash: |
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
eval "$(./dev-env/bin/dade-assist)"
|
|
|
|
|
|
|
|
|
|
DIR1=$(mktemp -d)
|
|
|
|
|
DIR2=$(mktemp -d)
|
|
|
|
|
DIR3=$(mktemp -d)
|
|
|
|
|
trap "rm -rf $DIR1; rm -rf $DIR2; rm -rf $DIR3" EXIT
|
|
|
|
|
|
|
|
|
|
unzip -d $DIR1 $(Build.StagingDirectory)/platform-independence/linux/platform-independence.dar
|
|
|
|
|
unzip -d $DIR2 $(Build.StagingDirectory)/platform-independence/windows/platform-independence.dar
|
|
|
|
|
unzip -d $DIR3 $(Build.StagingDirectory)/platform-independence/macos/platform-independence.dar
|
|
|
|
|
|
|
|
|
|
# hie/hi files may differ.
|
|
|
|
|
diff -r --strip-trailing-cr -x '*.hie' -x '*.hi' $DIR1 $DIR2
|
|
|
|
|
diff -r --strip-trailing-cr -x '*.hie' -x '*.hi' $DIR1 $DIR3
|
|
|
|
|
displayName: 'Compare platform-independence dars of different platforms.'
|
|
|
|
|
|
2021-01-04 22:45:30 +03:00
|
|
|
|
- job: compatibility_ts_libs
|
|
|
|
|
dependsOn:
|
|
|
|
|
- check_for_release
|
2021-03-17 16:33:20 +03:00
|
|
|
|
condition: and(succeeded(),
|
|
|
|
|
not(eq(dependencies.check_for_release.outputs['out.is_release'], 'true')))
|
2021-01-04 22:45:30 +03:00
|
|
|
|
timeoutInMinutes: 360
|
|
|
|
|
pool:
|
2021-01-27 19:38:34 +03:00
|
|
|
|
name: ubuntu_20_04
|
2021-01-04 22:45:30 +03:00
|
|
|
|
demands: assignment -equals default
|
|
|
|
|
steps:
|
|
|
|
|
- template: report-start.yml
|
|
|
|
|
- checkout: self
|
2021-01-20 19:22:53 +03:00
|
|
|
|
- template: clean-up.yml
|
2021-01-04 22:45:30 +03:00
|
|
|
|
- template: compatibility_ts_libs.yml
|
|
|
|
|
- template: tell-slack-failed.yml
|
|
|
|
|
- template: report-end.yml
|
|
|
|
|
|
|
|
|
|
- job: compatibility_linux
|
|
|
|
|
dependsOn:
|
|
|
|
|
- check_for_release
|
|
|
|
|
- compatibility_ts_libs
|
|
|
|
|
timeoutInMinutes: 360
|
|
|
|
|
pool:
|
2021-01-27 19:38:34 +03:00
|
|
|
|
name: ubuntu_20_04
|
2021-01-04 22:45:30 +03:00
|
|
|
|
demands: assignment -equals default
|
|
|
|
|
steps:
|
|
|
|
|
- template: report-start.yml
|
|
|
|
|
- checkout: self
|
2021-01-20 19:22:53 +03:00
|
|
|
|
- template: clean-up.yml
|
2021-01-04 22:45:30 +03:00
|
|
|
|
- template: compatibility.yml
|
|
|
|
|
parameters:
|
|
|
|
|
test_flags: '--quick'
|
|
|
|
|
- template: tell-slack-failed.yml
|
|
|
|
|
- template: report-end.yml
|
|
|
|
|
|
2021-10-07 11:55:38 +03:00
|
|
|
|
# For main and PRs targeting main, we simply check against the most recent stable tag.
|
2021-09-23 18:50:33 +03:00
|
|
|
|
- job: compatibility_stable_protobuf
|
|
|
|
|
pool:
|
|
|
|
|
name: ubuntu_20_04
|
|
|
|
|
demands: assignment -equals default
|
|
|
|
|
steps:
|
|
|
|
|
- checkout: self
|
2022-11-17 17:58:49 +03:00
|
|
|
|
fetchTags: true
|
2021-10-04 21:10:41 +03:00
|
|
|
|
- bash: ci/check-protobuf-stability.sh
|
2021-09-23 18:50:33 +03:00
|
|
|
|
- template: tell-slack-failed.yml
|
|
|
|
|
|
2022-11-14 18:06:34 +03:00
|
|
|
|
- job: collect_build_data_failed
|
|
|
|
|
condition: failed()
|
2021-01-04 22:45:30 +03:00
|
|
|
|
dependsOn:
|
|
|
|
|
- Linux
|
2021-03-26 18:26:24 +03:00
|
|
|
|
- Linux_oracle
|
2021-01-04 22:45:30 +03:00
|
|
|
|
- macOS
|
|
|
|
|
- Windows
|
|
|
|
|
- release
|
|
|
|
|
- git_sha
|
|
|
|
|
- compatibility_linux
|
2021-09-23 18:50:33 +03:00
|
|
|
|
- compatibility_stable_protobuf
|
2021-03-24 14:18:58 +03:00
|
|
|
|
- check_for_release
|
2022-11-15 15:52:40 +03:00
|
|
|
|
pool:
|
|
|
|
|
name: "ubuntu_20_04"
|
|
|
|
|
demands: assignment -equals default
|
2022-11-14 18:06:34 +03:00
|
|
|
|
|
|
|
|
|
- job: collect_build_data
|
|
|
|
|
condition: always()
|
|
|
|
|
dependsOn:
|
|
|
|
|
- collect_build_data_failed
|
|
|
|
|
variables:
|
|
|
|
|
failed_result: $[ dependencies.collect_build_data_failed.result ]
|
2022-11-15 15:52:40 +03:00
|
|
|
|
pool:
|
|
|
|
|
name: "ubuntu_20_04"
|
|
|
|
|
demands: assignment -equals default
|
2022-11-14 18:06:34 +03:00
|
|
|
|
steps:
|
|
|
|
|
- bash: "exit 1"
|
|
|
|
|
# Since 'collect_build_data_failed' only runs when 'failed()', if it was
|
|
|
|
|
# successful that means at least one of its dependencies failed, so we set
|
|
|
|
|
# the result of 'collect_build_data' to 'Failed' with 'exit 1'
|
|
|
|
|
condition: eq(variables.failed_result, 'Succeeded')
|