feature/jenkinsfile
github notify
This commit is contained in:
parent
2534a6413f
commit
2fe76a2749
1 changed files with 7 additions and 4 deletions
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
|
@ -8,6 +8,8 @@ pipeline{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
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'
|
sh 'python -m py_compile sources/add2vals.py sources/calc.py'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -42,11 +44,9 @@ pipeline{
|
||||||
always {
|
always {
|
||||||
junit 'test-reports/results.xml'
|
junit 'test-reports/results.xml'
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// steps {
|
|
||||||
// sh 'py.test --verbose --junit-xml test-reports/results.xml sources/test_calc.py || true'
|
|
||||||
// }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -59,11 +59,14 @@ pipeline{
|
||||||
steps {
|
steps {
|
||||||
sh 'pyinstaller --onefile sources/add2vals.py'
|
sh 'pyinstaller --onefile sources/add2vals.py'
|
||||||
input message: "Build stage finished.(click to preceded)"
|
input message: "Build stage finished.(click to preceded)"
|
||||||
|
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
archiveArtifacts 'dist/add2vals'
|
archiveArtifacts 'dist/add2vals'
|
||||||
|
githubNotify description: 'This is a shorted example', status: 'SUCCESS'
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue