summaryrefslogtreecommitdiffstats
path: root/vars/mergeJunitResults.groovy
blob: 56495bedd72184bba76369b2fb0839b9b0859b3f (plain)
1
2
3
4
5
6
7
8
9
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 'rm junit-*.xml'
    junit 'junit.xml'
}