From b519975fc8599ba8cf1fedb8b7256b7d6d5d4673 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Thu, 2 Dec 2021 16:48:22 +0000 Subject: [PATCH] build: Use Ubuntu impish (21.10) for workers Signed-off-by: Rob Bradford --- Jenkinsfile | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8b630bcae..aa9a925e5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,9 +22,9 @@ pipeline{ } } stage ('Build') { - parallel { + parallel { stage ('Worker build') { - agent { node { label 'hirsute' } } + agent { node { label 'impish' } } stages { stage ('Checkout') { steps { @@ -83,7 +83,7 @@ pipeline{ } } stage ('Worker build (musl)') { - agent { node { label 'hirsute' } } + agent { node { label 'impish' } } stages { stage ('Checkout') { steps { @@ -179,7 +179,7 @@ pipeline{ } } stage ('Worker build - Windows guest') { - agent { node { label 'hirsute' } } + agent { node { label 'impish' } } environment { AZURE_CONNECTION_STRING = credentials('46b4e7d6-315f-4cc1-8333-b58780863b9b') } @@ -189,9 +189,17 @@ pipeline{ checkout scm } } + stage ('Install azure-cli') { + steps { + sh "sudo apt install -y ca-certificates curl apt-transport-https lsb-release gnupg" + sh "curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/microsoft.gpg > /dev/null" + sh "echo \"deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ hirsute main\" | sudo tee /etc/apt/sources.list.d/azure-cli.list" + sh "sudo apt update" + sh "sudo apt install -y azure-cli" + } + } stage ('Download assets') { steps { - sh "sudo apt install -y azure-cli" sh "mkdir ${env.HOME}/workloads" sh 'az storage blob download --container-name private-images --file "$HOME/workloads/OVMF-4b47d0c6c8.fd" --name OVMF-4b47d0c6c8.fd --connection-string "$AZURE_CONNECTION_STRING"' sh 'az storage blob download --container-name private-images --file "$HOME/workloads/windows-server-2019.raw" --name windows-server-2019.raw --connection-string "$AZURE_CONNECTION_STRING"' @@ -216,7 +224,7 @@ pipeline{ } } stage ('Worker build - Live Migration') { - agent { node { label 'hirsute-small' } } + agent { node { label 'impish-small' } } stages { stage ('Checkout') { steps {