Deliver Stage

This commit is contained in:
Zaman 2020-03-02 18:49:40 +05:00
parent 97323c5b23
commit 3e3c3b60a8

30
Jenkinsfile vendored
View file

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