Add 'Deliver' stage

This commit is contained in:
paola.rozo 2020-08-24 21:09:03 -05:00
parent a9342c3c01
commit edbe4bdb75

19
Jenkinsfile vendored
View file

@ -27,5 +27,24 @@ 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'"
}
}
}
} }
} }