Merge pull request #1 from MMDelRio/1111
Add Deliver stage to Jenkinsfile
This commit is contained in:
commit
1e94110bca
1 changed files with 21 additions and 0 deletions
21
Jenkinsfile
vendored
21
Jenkinsfile
vendored
|
@ -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'"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in a new issue