Merge pull request #1 from MMDelRio/1111

Add Deliver stage to Jenkinsfile
This commit is contained in:
MMDelRio 2021-11-30 16:47:30 -04:00 committed by GitHub
commit 1e94110bca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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'"
}
}
}
}
}