From 73e9ea0687c570a4d677e26ebdabc81786c7a82b Mon Sep 17 00:00:00 2001 From: Daniel Tschan Date: Fri, 16 Sep 2022 16:47:07 +0200 Subject: [PATCH] Don't fail job when openshift-diff fails. --- src/com/puzzleitc/jenkins/command/OpenshiftDiffCommand.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/puzzleitc/jenkins/command/OpenshiftDiffCommand.groovy b/src/com/puzzleitc/jenkins/command/OpenshiftDiffCommand.groovy index 675f902..09e447e 100644 --- a/src/com/puzzleitc/jenkins/command/OpenshiftDiffCommand.groovy +++ b/src/com/puzzleitc/jenkins/command/OpenshiftDiffCommand.groovy @@ -31,7 +31,7 @@ class OpenshiftDiffCommand { ctx.echo("openshift whoami: ${ctx.openshift.raw('whoami').out.trim()}") ctx.echo("openshift cluster: ${ctx.openshift.cluster()}") ctx.echo("openshift project: ${project}") - ctx.sh(script: "openshift-diff --server=${ctx.openshift.cluster()} ${insecureSkipTlsVerify ? '--insecure-skip-tls-verify': '' } ${saToken ? '--token=' + saToken : ''} -n ${project} <<< '${configuration}'") + ctx.sh(script: "openshift-diff --server=${ctx.openshift.cluster()} ${insecureSkipTlsVerify ? '--insecure-skip-tls-verify': '' } ${saToken ? '--token=' + saToken : ''} -n ${project} <<< '${configuration}'", returnStatus: true) } } }