feature/kjug

artifacts added
This commit is contained in:
kudlaty 2018-03-22 18:47:40 +01:00
parent 2a7b665d52
commit 3e5f628132

63
Jenkinsfile vendored
View file

@ -13,18 +13,61 @@ pipeline{
} }
} }
stage('Tests') { stage('Tests') {
agent { parallel {
docker { stage('on centos') {
image 'qnib/pytest' agent {
docker {
image 'qnib/pytest'
}
}
steps {
sh 'ls -la'
sh 'pip install flask'
sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_webapp.py || true'
}
post {
always {
junit 'test-reports/results.xml'
}
}
} }
stage('on debian') {
agent {
docker {
image 'qnib/pytest'
}
}
steps {
sh 'pip install flask'
sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_webapp.py || true'
}
post {
always {
junit 'test-reports/results.xml'
}
}
}
} }
steps {
sh 'pip install flask' stage('Create Artifacts') {
sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_webapp.py || true' agent {
} docker {
post { image 'cdrx/pyinstaller-linux:python2'
always { }
junit 'test-reports/results.xml' }
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'
}
} }
} }
} }