Skip to content

Commit

Permalink
Try and print the error
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Brousseau <[email protected]>
  • Loading branch information
AdamBrousseau committed Jan 12, 2024
1 parent 9767d63 commit 401ccdd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pipelines/build/common/openjdk_build_pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1968,9 +1968,13 @@ class Build {
}
context.withEnv(['BUILD_ARGS=' + buildArgs]) {
context.sshagent(['83181e25-eea4-4f55-8b3e-e79615733226']) {
//context.withCredentials([usernamePassword(credentialsId: '7c1c2c28-650f-49e0-afd1-ca6b60479546', passwordVariable: 'GSKIT_PASSWORD', usernameVariable: 'GSKIT_USERNAME')]) {
context.sh(script: "./${DEFAULTS_JSON['scriptDirectories']['buildfarm']}")
//}
try{
context.withCredentials([usernamePassword(credentialsId: '7c1c2c28-650f-49e0-afd1-ca6b60479546', passwordVariable: 'GSKIT_PASSWORD', usernameVariable: 'GSKIT_USERNAME')]) {
context.sh(script: "./${DEFAULTS_JSON['scriptDirectories']['buildfarm']}")
} catch(e) {
println(e)
throw e
}
}
}
} else {
Expand Down

0 comments on commit 401ccdd

Please sign in to comment.