Deliver Stage
This commit is contained in:
parent
97323c5b23
commit
3e3c3b60a8
1 changed files with 24 additions and 6 deletions
30
Jenkinsfile
vendored
30
Jenkinsfile
vendored
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue