From 401ccdd360a7285985ec7add2443b331879bece0 Mon Sep 17 00:00:00 2001 From: Adam Brousseau Date: Fri, 12 Jan 2024 15:38:39 -0500 Subject: [PATCH] Try and print the error Signed-off-by: Adam Brousseau --- pipelines/build/common/openjdk_build_pipeline.groovy | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pipelines/build/common/openjdk_build_pipeline.groovy b/pipelines/build/common/openjdk_build_pipeline.groovy index ed42970da..db3a7b3d3 100644 --- a/pipelines/build/common/openjdk_build_pipeline.groovy +++ b/pipelines/build/common/openjdk_build_pipeline.groovy @@ -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 {