simple-python-pyinstaller-app/Jenkinsfile
2021-11-18 00:16:38 -05:00

33 line
890 B
Groovy
原始文件 Blame 文件歷史

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

pipeline {
agent none
stages {
stage('Build') {
agent {
docker {
image 'python:2-alpine'
}
}
steps {
sh 'python -m py_compile sources/add2vals.py sources/calc.py'
}
}
stage('Test') { //1
agent {
docker {
image 'qnib/pytest' //2
}
}
steps {
sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_calc.py' //3
}
post {
always {
mail to:"ouaazs@algonquincollege.com",
subject:"STATUS FOR PROJECT: ${currentBuild.fullDisplayName}",
body: "RESULT: ${currentBuild.result}"  
}
}
}
}
}