diff --git a/Jenkinsfile b/Jenkinsfile index 6a98cb5..ab8e4e9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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'" + } + } + } + + } } \ No newline at end of file