Update Jenkinsfile
This commit is contained in:
parent
854dab24e2
commit
f15330fdb8
1 changed files with 11 additions and 11 deletions
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
|
@ -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 {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue