feature/kjug
artifacts added
This commit is contained in:
parent
3e5f628132
commit
5050f82100
1 changed files with 21 additions and 21 deletions
42
Jenkinsfile
vendored
42
Jenkinsfile
vendored
|
@ -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'
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue