Use a different timeout for nightly vs daytime (release and extended) builds

This commit is contained in:
Erica Portnoy 2022-06-22 16:58:29 -07:00
parent 49f21bcc9f
commit e5db6dc409
4 changed files with 4 additions and 1 deletions

View file

@ -9,6 +9,7 @@ variables:
# We don't publish our Docker images in this pipeline, but when building them
# for testing, let's use the nightly tag.
dockerTag: nightly
snapBuildTimeout: 5400
stages:
- template: templates/stages/test-and-package-stage.yml

View file

@ -11,6 +11,7 @@ schedules:
variables:
dockerTag: nightly
snapBuildTimeout: 19800
stages:
- template: templates/stages/test-and-package-stage.yml

View file

@ -8,6 +8,7 @@ pr: none
variables:
dockerTag: ${{variables['Build.SourceBranchName']}}
snapBuildTimeout: 5400
stages:
- template: templates/stages/test-and-package-stage.yml

View file

@ -149,7 +149,7 @@ jobs:
git config --global user.name "$(Build.RequestedFor)"
mkdir -p ~/.local/share/snapcraft/provider/launchpad
cp $(credentials.secureFilePath) ~/.local/share/snapcraft/provider/launchpad/credentials
python3 tools/snap/build_remote.py ALL --archs ${SNAP_ARCH} --timeout 5400
python3 tools/snap/build_remote.py ALL --archs ${SNAP_ARCH} --timeout $(snapBuildTimeout)
displayName: Build snaps
- script: |
set -e