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 { pipeline {
agent none agent none
options {
skipStagesAfterUnstable()
}
stages { stages {
stage('Build') { stage('Build') {
agent { agent {
docker { docker {
image 'python:2-alpine' image 'python:2-alpine'
} }
} }
steps { 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 { agent {
docker { docker {
image 'qnib/pytest' image 'qnib/pytest'
@ -30,9 +27,12 @@ pipeline {
} }
} }
stage('Deliver') { stage('Deliver') {
agent {
docker {
image 'cdrx/pyinstaller-linux:python2'
}
}
steps { steps {
sh "docker run -v $(pwd -P):/src cdxr/pyinstaller-linux:python2"
sh 'pyinstaller --onefile sources/add2vals.py' sh 'pyinstaller --onefile sources/add2vals.py'
} }
post { post {
@ -42,4 +42,4 @@ pipeline {
} }
} }
} }
} }