Fix? Jenkinsfile

This commit is contained in:
Dragonnight56 2020-12-10 19:48:27 -08:00
parent ace62f3b13
commit efe26e6e28

60
jenkins/Jenkinsfile vendored
View file

@ -11,35 +11,35 @@ pipeline {
sh 'python -m py_compile sources/add2vals.py sources/calc.py' //4
}
}
//stage('Test') {
//agent {
//docker {
//image 'qnib/pytest'
//}
//}
//steps {
//sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_calc.py'
//}
//post {
//always {
//junit 'test-reports/results.xml'
//}
//}
//}
//stage('Deliver') {
//agent {
//docker {
//image 'cdrx/pyinstaller-linux:python2'
//}
//}
//steps {
//sh 'pyinstaller --onefile sources/add2vals.py'
//}
//post {
//success {
//archiveArtifacts 'dist/add2vals'
//}
//}
//}
stage('Test') {
agent {
docker {
image 'qnib/pytest'
}
}
steps {
sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_calc.py'
}
post {
always {
junit 'test-reports/results.xml'
}
}
}
stage('Deliver') {
agent {
docker {
image 'cdrx/pyinstaller-linux:python2'
}
}
steps {
sh 'pyinstaller --onefile sources/add2vals.py'
}
post {
success {
archiveArtifacts 'dist/add2vals'
}
}
}
}
}