diff --git a/Jenkinsfile b/Jenkinsfile index 64dd31d..8546df9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,12 +29,11 @@ pipeline { } stages { stage('Test') { + environment { + BYPASS_XOA_TOKEN = sh(script: "$(xo-cli --createToken $XOA_URL $XOA_USER $XOA_PASSWORD | tail -n1)", returnStdout: true) + } steps { lock('xoa-test-runner') { - sh ''' - set +x - export BYPASS_XOA_TOKEN=$(xo-cli --createToken $XOA_URL $XOA_USER $XOA_PASSWORD | tail -n1) - ''' sh 'cp /opt/terraform-provider-xenorchestra/testdata/images/alpine-virt-3.17.0-x86_64.iso xoa/testdata/alpine-virt-3.17.0-x86_64.iso' sh 'TF_VERSION=${TF_VERSION} TIMEOUT=60m make ci' }