Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
ci: enable max timeout
Browse files Browse the repository at this point in the history
azure pipelines have a 60 minutes default per job. Public
jobs can run for 3 hours but seems that we need to move
to a different format.

See: microsoft/azure-pipelines-yaml#48

Signed-off-by: Jose Carlos Venegas Munoz <[email protected]>
  • Loading branch information
jcvenegas committed Jun 28, 2019
1 parent 26ac6c5 commit b58c6a4
Showing 1 changed file with 34 additions and 33 deletions.
67 changes: 34 additions & 33 deletions .ci/azure/pipelines/obs-packaging-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,43 +7,44 @@
trigger:
- master

pool:
vmImage: 'ubuntu-latest'
# Set timeout to max time (0)
jobs:
- job: packages
#timeout set to max
timeoutInMinutes: 0

steps:
pool:
vmImage: 'ubuntu-latest'
steps:
# azure docker installation task
# https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/tool/docker-installer?view=azure-devops
- task: DockerInstaller@0
displayName: 'Install Docker'
- task: DockerInstaller@0
displayName: 'Install Docker'

- bash: |
sudo apt-get update -y -qq
sudo apt-get install -y git
git config --global user.email "[email protected]"
git config --global user.name "azure-pipeline"
displayName: 'Setup'
- bash: |
sudo apt-get update -y -qq
sudo apt-get install -y git
git config --global user.email "[email protected]"
git config --global user.name "azure-pipeline"
displayName: 'Setup'
- bash: |
# This is set by azure, but we use the same variable
export AGENT_VERSION=""
script -qefc bash -c '.ci/packaging/request_to_obs.sh'
# Kata branch to build
displayName: 'Request build to OBS'
- bash: |
# This is set by azure, but we use the same variable
export AGENT_VERSION=""
script -qefc bash -c '.ci/packaging/request_to_obs.sh'
# Kata branch to build
displayName: 'Request build to OBS'
env:
CI: true
BRANCH: $(system.pullRequest.targetBranch)
OBS_USER: $(OBS_USER)
OBS_PASS: $(OBS_PASS)
GITHUB_PR: $(system.pullRequest.pullRequestNumber)
env:
CI: true
BRANCH: $(system.pullRequest.targetBranch)
OBS_USER: $(OBS_USER)
OBS_PASS: $(OBS_PASS)
GITHUB_PR: $(system.pullRequest.pullRequestNumber)
- bash: |
echo "Wait for packages from ${OBS_SUBPROJECT}"
[ "${OBS_SUBPROJECT}" != "" ] || { echo "OBS_SUBPROJECT"; exit 1; }
script -qefc bash -c './obs-packaging/wait-obs.sh'
displayName: 'Wait for packages are ready'
env:
USE_DOCKER: true
CI: $(CI)
- bash: |
echo "Wait for packages from ${OBS_SUBPROJECT}"
[ "${OBS_SUBPROJECT}" != "" ] || { echo "OBS_SUBPROJECT"; exit 1; }
script -qefc bash -c './obs-packaging/wait-obs.sh'
displayName: 'Wait for packages are ready'
env:
USE_DOCKER: true
CI: $(CI)

0 comments on commit b58c6a4

Please sign in to comment.