Skip to content

Commit

Permalink
ci(jenkins): store JUnit for the Windows stage
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Mar 3, 2020
1 parent 891b38f commit 1b8d9ec
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -478,15 +478,23 @@ def generateStepForWindows(Map params = [:]){
'''
bat 'npm install'
bat 'node test/test.js'
stash includes: '**/*-output.tap', name: 'windows-tap', useDefaultExcludes: true
}
} catch(e){
error(e.toString())
} finally {
echo 'JUnit archiving no yet in place'
}
}
}

// Let's now prepare the test output
dir('windows') {
unstash 'windows-tap'
docker.image('node:12').inside("-v ${WORKSPACE}/${BASE_DIR}/windows:/app"){
sh(label: "Convert Test results to JUnit format", script: 'cd /app && .ci/scripts/convert_tap_to_junit.sh')
}
junit(allowEmptyResults: true, keepLongStdio: true, testResults: '**/junit-*.xml')
}

// If the above execution failed, then it will not reach this section. TBD
sh label: 'Stop services', script: ".ci/scripts/windows/stop-test.sh ${version}"
}
Expand Down

0 comments on commit 1b8d9ec

Please sign in to comment.