pass script to bash to support scripts which aren't actually executable (#96198)

Co-authored-by: spalger <spalger@users.noreply.github.com>
This commit is contained in:
Spencer 2021-04-04 11:40:42 -07:00 committed by GitHub
parent 763c0038ae
commit cf22394807
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,8 +1,8 @@
def call(script, label, enableJunitProcessing = false) {
def extraConfig = enableJunitProcessing ? "" : "--config ${env.WORKSPACE}/kibana/.ci/runbld_no_junit.yml"
// def extraConfig = enableJunitProcessing ? "" : "--config ${env.WORKSPACE}/kibana/.ci/runbld_no_junit.yml"
sh(
script: "/usr/local/bin/runbld -d '${pwd()}' ${extraConfig} ${script}",
script: "bash ${script}",
label: label ?: script
)
}