From b58c6a4682346f821a9f0c23e5c4fe15ab492d4e Mon Sep 17 00:00:00 2001 From: Jose Carlos Venegas Munoz Date: Fri, 28 Jun 2019 16:19:08 -0500 Subject: [PATCH] ci: enable max timeout 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: https://github.com/microsoft/azure-pipelines-yaml/issues/48 Signed-off-by: Jose Carlos Venegas Munoz --- .ci/azure/pipelines/obs-packaging-ci.yml | 67 ++++++++++++------------ 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/.ci/azure/pipelines/obs-packaging-ci.yml b/.ci/azure/pipelines/obs-packaging-ci.yml index fd82dc12..c4b4d5cd 100644 --- a/.ci/azure/pipelines/obs-packaging-ci.yml +++ b/.ci/azure/pipelines/obs-packaging-ci.yml @@ -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 "azure-pipeline@kata.io" - 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 "azure-pipeline@kata.io" + 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)