add final stage
This commit is contained in:
parent
c2143f1681
commit
d7e2728ff7
1 changed files with 25 additions and 6 deletions
23
Jenkinsfile
vendored
23
Jenkinsfile
vendored
|
@ -1,7 +1,7 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent none
|
agent none
|
||||||
environment {
|
options {
|
||||||
PATH = "$PATH:/usr/local/bin"
|
skipStagesAfterUnstable()
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
|
@ -30,5 +30,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'"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue