This repository has been archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
1 changed file
with
34 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) |