Update Jenkinsfile

This commit is contained in:
Zaman 2020-03-02 19:04:05 +05:00
parent 854dab24e2
commit f15330fdb8

22
Jenkinsfile vendored
View file

@ -1,20 +1,17 @@
pipeline {
agent none
options {
skipStagesAfterUnstable()
}
agent none
stages {
stage('Build') {
stage('Build') {
agent {
docker {
image 'python:2-alpine'
image 'python:2-alpine'
}
}
steps {
sh 'python -m py_compile sources/add2vals.py sources/calc.py'
sh 'python -m py_compile sources/add2vals.py sources/calc.py'
}
}
stage('Test') {
stage('Test') {
agent {
docker {
image 'qnib/pytest'
@ -30,9 +27,12 @@ pipeline {
}
}
stage('Deliver') {
agent {
docker {
image 'cdrx/pyinstaller-linux:python2'
}
}
steps {
sh "docker run -v $(pwd -P):/src cdxr/pyinstaller-linux:python2"
sh 'pyinstaller --onefile sources/add2vals.py'
}
post {
@ -42,4 +42,4 @@ pipeline {
}
}
}
}
}