make a template

This commit is contained in:
riyadgh 2020-02-14 04:32:40 -05:00
parent 71dd518228
commit 2ac8d34dd7

10
Jenkinsfile vendored
View file

@ -4,25 +4,25 @@ pipeline {
stage('Build') {
agent {
docker {
image 'python:2-alpine'
image ''
}
}
steps {
sh 'python -m py_compile sources/add2vals.py sources/calc.py'
sh ''
}
}
stage('Test') {
agent {
docker {
image 'qnib/pytest'
image ''
}
}
steps {
sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_calc.py'
sh ''
}
post {
always {
junit 'test-reports/results.xml'
junit ''
}
}
}