feature/jenkinsfile

github notify
This commit is contained in:
kudlaty 2018-03-21 19:43:02 +01:00
parent 2534a6413f
commit 2fe76a2749

11
Jenkinsfile vendored
View file

@ -8,6 +8,8 @@ pipeline{
}
}
steps {
env.COMMIT_HASH = sh(returnStdout: true, script: 'git rev-parse HEAD').trim()
sh "echo $env.COMMIT_HASH"
sh 'python -m py_compile sources/add2vals.py sources/calc.py'
}
}
@ -42,13 +44,11 @@ pipeline{
always {
junit 'test-reports/results.xml'
}
}
}
// steps {
// sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_calc.py || true'
// }
}
}
}
stage('Deliver') {
agent {
@ -59,11 +59,14 @@ pipeline{
steps {
sh 'pyinstaller --onefile sources/add2vals.py'
input message: "Build stage finished.(click to preceded)"
}
post {
success {
archiveArtifacts 'dist/add2vals'
githubNotify description: 'This is a shorted example', status: 'SUCCESS'
}
}
}
}