From 3504947f0e2de73f63acbab317423ff68ed4101d Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 18 Nov 2022 17:18:47 +0000 Subject: [PATCH] Jenkinsfile: Re-enable SGX CI testing With the modernised testing of SGX the testing can be re-enabled on the CI. Signed-off-by: Rob Bradford --- Jenkinsfile | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 0d3a791e9..927fbb3a5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -306,6 +306,47 @@ pipeline { } } } + stage('Worker build - SGX') { + agent { node { label 'jammy-sgx' } } + when { + beforeAgent true + allOf { + branch 'main' + expression { + return runWorkers + } + } + } + stages { + stage('Checkout') { + steps { + checkout scm + } + } + stage('Run SGX integration tests') { + options { + timeout(time: 1, unit: 'HOURS') + } + steps { + sh 'scripts/dev_cli.sh tests --integration-sgx' + } + } + stage('Run SGX integration tests for musl') { + options { + timeout(time: 1, unit: 'HOURS') + } + steps { + sh 'scripts/dev_cli.sh tests --integration-sgx --libc musl' + } + } + } + post { + always { + sh "sudo chown -R jenkins.jenkins ${WORKSPACE}" + deleteDir() + } + } + } } } }