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') { stage('Build') {
agent { agent {
docker { docker {
image 'python:2-alpine' image ''
} }
} }
steps { steps {
sh 'python -m py_compile sources/add2vals.py sources/calc.py' sh ''
} }
} }
stage('Test') { stage('Test') {
agent { agent {
docker { docker {
image 'qnib/pytest' image ''
} }
} }
steps { steps {
sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_calc.py' sh ''
} }
post { post {
always { always {
junit 'test-reports/results.xml' junit ''
} }
} }
} }