Skip to content

Commit

Permalink
ci: runbld script rather than overriding the shebang
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Apr 28, 2020
1 parent 80d0194 commit bb6e743
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .ci/scripts/runbld_junit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/local/bin/runbld
# shellcheck shell=bash
# This file just exists to give runbld something to invoke before processing junit reports
echo 'Processing junit reports with runbld...'
find . -type f
6 changes: 2 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -991,16 +991,14 @@ def junitAndStore(Map params = [:]){
def runbld() {
catchError(buildResult: 'SUCCESS', message: 'runbld post build action failed.') {
if (stashedTestReports) {
echo "### RunBLD test reports ###"
dir('runbld') {
stashedTestReports.each { k, v ->
dir(k) {
unstash v
}
}
sh(label: 'runbld', script: """#!/usr/local/bin/runbld
echo 'Runbld to store the junit report'
""")
sh(label: 'Process JUnit reports with runbld',
script: "/usr/local/bin/runbld -d '${pwd()}' ${env.WORKSPACE}/${env.BASE_DIR}/.ci/scripts/runbld_junit.sh")
}
}
}
Expand Down

0 comments on commit bb6e743

Please sign in to comment.