@@ -233,15 +233,11 @@ def buildImage(config, imageKeyToTag)
233233 def dependentImageWithTag = " ${ IMAGE_NAME} /${ dependent.dockerfileStage} :${ dependentTag} "
234234 def customImageWithTag = " ${ IMAGE_NAME} /${ dockerfileStage} :${ customTag} "
235235
236- if (target == " ngc-release" ) {
237- if (TRIGGER_TYPE == " post-merge" ) {
238- echo " Use NGC artifacts for post merge build"
239- dependentImageWithTag = " ${ NGC_IMAGE_NAME} :${ dependentTag} "
240- imageWithTag = " ${ NGC_IMAGE_NAME} :${ tag} "
241- customImageWithTag = " ${ NGC_IMAGE_NAME} :${ customTag} "
242- }
243- imageKeyToTag[" NGC Devel Image ${ config.arch} " ] = dependentImageWithTag
244- imageKeyToTag[" NGC Release Image ${ config.arch} " ] = imageWithTag
236+ if (target == " ngc-release" && TRIGGER_TYPE == " post-merge" ) {
237+ echo " Use NGC artifacts for post merge build"
238+ dependentImageWithTag = " ${ NGC_IMAGE_NAME} :${ dependentTag} "
239+ imageWithTag = " ${ NGC_IMAGE_NAME} :${ tag} "
240+ customImageWithTag = " ${ NGC_IMAGE_NAME} :${ customTag} "
245241 }
246242
247243 args + = " GITHUB_MIRROR=https://urm.nvidia.com/artifactory/github-go-remote"
@@ -630,7 +626,9 @@ pipeline {
630626 status = handle. result
631627
632628 if (status != " SUCCESS" ) {
633- error " Downstream job did not succeed"
629+ catchError(buildResult : ' FAILURE' , stageResult : ' FAILURE' ) {
630+ error " Downstream job did not succeed"
631+ }
634632 }
635633 }
636634 }
0 commit comments