Skip to content

Commit 7cbe30e

Browse files
authored
[TRTLLM-6893][infra] fix Build Docker Image tag issue (#6555)
Signed-off-by: ZhanruiSunCh <[email protected]> Signed-off-by: Zhanrui Sun <[email protected]>
1 parent dc84695 commit 7cbe30e

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

jenkins/BuildDockerImage.groovy

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)