From 1bae38ceb45bd3be856cce88c650e5dbf186e282 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 7 Oct 2020 15:34:18 +0100 Subject: [PATCH] build: Add Jenkinsfile entry for Windows guest Add one more parallel stage to run Windows guest tests in a dedicated VM. Signed-off-by: Rob Bradford --- Jenkinsfile | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index d248364c0..9eada4456 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -134,6 +134,44 @@ pipeline{ } } } + stage ('Worker build - Windows guest') { + agent { node { label 'bionic-win' } } + options { + timeout(time: 1, unit: 'HOURS') + } + stages { + stage ('Checkout') { + steps { + checkout scm + } + } + stage ('Download assets') { + steps { + sh "mkdir ${env.HOME}/workloads" + azureDownload(storageCredentialId: 'ch-image-store', + containerName: 'private-images', + includeFilesPattern: 'OVMF.fd', + downloadType: 'container', + downloadDirLoc: "${env.HOME}/workloads") + azureDownload(storageCredentialId: 'ch-image-store', + containerName: 'private-images', + includeFilesPattern: 'windows-server-2019.raw', + downloadType: 'container', + downloadDirLoc: "${env.HOME}/workloads") + } + } + stage ('Run Windows guest integration tests') { + steps { + sh "scripts/dev_cli.sh tests --integration-windows" + } + } + stage ('Run Windows guest integration tests for musl') { + steps { + sh "scripts/dev_cli.sh tests --integration-windows --libc musl" + } + } + } + } } } }