Update Jenkinsfile
This commit is contained in:
父節點
854dab24e2
當前提交
f15330fdb8
共有 1 個文件被更改,包括 11 次插入 和 11 次删除
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 {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
載入中…
Reference in a new issue