feature/kjug

artifacts added
This commit is contained in:
kudlaty 2018-03-22 18:49:34 +01:00
parent 3e5f628132
commit 5050f82100

42
Jenkinsfile vendored
View file

@ -12,7 +12,8 @@ pipeline{
sh 'python -m py_compile sources/webapp.py' sh 'python -m py_compile sources/webapp.py'
} }
} }
stage('Tests') { stage('Test') {
parallel { parallel {
stage('on centos') { stage('on centos') {
agent { agent {
@ -50,26 +51,25 @@ pipeline{
} }
} }
}
stage('Create Artifacts') { stage('Create Artifacts') {
agent { agent {
docker { docker {
image 'cdrx/pyinstaller-linux:python2' image 'cdrx/pyinstaller-linux:python2'
}
}
steps {
sh 'pip install flask'
sh 'pyinstaller --paths=/usr/lib64/python2.7/site-packages/ --onefile sources/webapp.py'
stash includes: 'dist/webapp', name: 'exec_files'
}
post {
success {
archiveArtifacts 'dist/webapp'
}
} }
} }
steps {
sh 'pip install flask'
sh 'pyinstaller --paths=/usr/lib64/python2.7/site-packages/ --onefile sources/webapp.py'
stash includes: 'dist/webapp', name: 'exec_files'
}
post {
success {
archiveArtifacts 'dist/webapp'
}
}
} }
} }
} }