run merge-unit-results using python3 (#60466)

This commit is contained in:
Frédéric Péters 2022-01-10 17:15:23 +01:00
parent c250740099
commit b3de7673f4
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ def request = libraryResource 'com/mycorp/pipeline/somelib/request.json'
def call() {
tmpdir = env.TMPDIR ? env.TMPDIR : '.'
writeFile file:"${tmpdir}/merge-junit-results.py", text: libraryResource('merge-junit-results.py')
sh "python ${tmpdir}/merge-junit-results.py junit-*.xml >junit.xml"
sh "python3 ${tmpdir}/merge-junit-results.py junit-*.xml >junit.xml"
sh 'rm junit-*.xml'
junit 'junit.xml'
}