diff --git a/jenkins/BuildDockerImage.groovy b/jenkins/BuildDockerImage.groovy index 15b3a7033fa8..5cb227909bbe 100644 --- a/jenkins/BuildDockerImage.groovy +++ b/jenkins/BuildDockerImage.groovy @@ -228,7 +228,7 @@ pipeline { } steps { - buildImage("trtllm", params.action, "skip", "", LLM_BRANCH_TAG) + buildImage("trtllm", env.JOB_NAME ==~ /.*PostMerge.*/ ? "push" : params.action, "skip", "", LLM_BRANCH_TAG) } } stage("Build x86_64-skip") { @@ -246,7 +246,7 @@ pipeline { } steps { - buildImage("trtllm", params.action, "skip", "", LLM_BRANCH_TAG + "-sbsa", "", true) + buildImage("trtllm", env.JOB_NAME ==~ /.*PostMerge.*/ ? "push" : params.action, "skip", "", LLM_BRANCH_TAG + "-sbsa", "", true) } } stage("Build rockylinux8 x86_64-skip-py3.10") {