Add Logfilemonitor

This commit is contained in:
Xiao Jia shan 2019-03-08 12:32:34 +08:00
parent 6743c07bfd
commit 07c1ffd574

58
Jenkinsfile vendored
View file

@ -2,14 +2,23 @@ pipeline {
agent none agent none
stages { stages {
stage('Build') { stage('Build') {
agent { parallel {
docker { stage('Build-add2vals') {
image 'python:2-alpine' agent {
} docker {
image 'python:2-alpine'
}
} }
steps { steps {
sh 'python -m py_compile sources/add2vals.py sources/calc.py' sh 'python -m py_compile sources/add2vals.py sources/calc.py'
}
}
stage('Build-logfilemonitor') {
steps {
sh 'python -m py_compile sources/LogfileMonitor.py'
}
}
} }
} }
stage('Test') { stage('Test') {
@ -31,21 +40,30 @@ pipeline {
} }
} }
stage('Deliver') { stage('Deliver') {
agent { parallel {
docker { stage('Deliver-add2vals') {
image 'richardx/pyinstaller-linux:python2' agent {
docker {
image 'richardx/pyinstaller-linux:python2'
}
}
post {
success {
archiveArtifacts 'dist/add2vals'
}
}
steps {
sh 'pyinstaller --onefile sources/add2vals.py'
}
} }
stage('Delivery-logfilemonitor') {
} steps {
post { sh 'pyinstaller --onefile sources/LogfileMonitor.py'
success { }
archiveArtifacts 'dist/add2vals'
} }
}
steps {
sh 'pyinstaller --onefile sources/add2vals.py'
} }
} }
} }