Add Deliver stage to Jenkinsfile

This commit is contained in:
Monica Del Rio 2021-11-30 16:24:50 -04:00
parent a57602918d
commit 865b7e89ab

21
Jenkinsfile vendored
View file

@ -31,6 +31,27 @@ pipeline {
}
stage('Deliver') {
agent any
environment {
VOLUME = '$(pwd)/sources:/src'
IMAGE = 'cdrx/pyinstaller-linux:python2'
}
steps {
dir(path: env.BUILD_ID) {
unstash(name: 'compiled-results')
sh "docker run --rm -v ${VOLUME} ${IMAGE} 'pyinstaller -F add2vals.py'"
}
}
post {
success {
archiveArtifacts "${env.BUILD_ID}/sources/dist/add2vals"
sh "docker run --rm -v ${VOLUME} ${IMAGE} 'rm -rf build dist'"
}
}
}
}
}