This commit is contained in:
Zaman 2020-03-02 18:55:03 +05:00
parent 3e3c3b60a8
commit 83dc721429

20
Jenkinsfile vendored
View file

@ -1,8 +1,5 @@
pipeline { pipeline {
agent none agent none
options {
skipStagesAfterUnstable()
}
stages { stages {
stage('Build') { stage('Build') {
agent { agent {
@ -14,7 +11,7 @@ pipeline {
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'
@ -29,20 +26,5 @@ pipeline {
} }
} }
} }
stage('Deliver') {
agent {
docker {
image 'cdrx/pyinstaller-linux:python2'
}
}
steps {
sh 'pyinstaller --onefile sources/add2vals.py'
}
post {
success {
archiveArtifacts 'dist/add2vals'
}
}
}
} }
} }