Jenkinsfile: add stage to publish coverage and unit test results (#56657)
This commit is contained in:
parent
fd819ad56c
commit
ff8749d158
|
@ -27,6 +27,18 @@ PYTESTOPTIONS=--slow \
|
|||
PGPORT=`python -c 'import struct; import socket; s=socket.socket(); s.setsockopt(socket.SOL_SOCKET, socket.SO_LINGER, struct.pack("ii", 1, 0)); s.bind(("", 0)); print(s.getsockname()[1]); s.close()'` pg_virtualenv -o fsync=off ${env.TMPDIR}/venv/bin/tox -rv -e rbac-py3-dj22"""
|
||||
}
|
||||
}
|
||||
stage('Publish') {
|
||||
steps {
|
||||
script {
|
||||
utils = new Utils()
|
||||
utils.publish_coverage('coverage.xml')
|
||||
utils.publish_coverage_native('index.html')
|
||||
utils.publish_pylint('pylint.out')
|
||||
utils.mail_notify(currentBuild, env, 'ci+jenkins-authentic@entrouvert.org')
|
||||
}
|
||||
mergeJunitResults()
|
||||
}
|
||||
}
|
||||
stage('Packaging') {
|
||||
steps {
|
||||
script {
|
||||
|
@ -40,16 +52,6 @@ PGPORT=`python -c 'import struct; import socket; s=socket.socket(); s.setsockopt
|
|||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
script {
|
||||
utils = new Utils()
|
||||
utils.publish_coverage('coverage.xml')
|
||||
utils.publish_coverage_native('index.html')
|
||||
utils.publish_pylint('pylint.out')
|
||||
utils.mail_notify(currentBuild, env, 'ci+jenkins-authentic@entrouvert.org')
|
||||
}
|
||||
mergeJunitResults()
|
||||
}
|
||||
cleanup {
|
||||
sh "rm -rf ${env.TMPDIR}"
|
||||
cleanWs()
|
||||
|
|
Loading…
Reference in New Issue