@@ -484,6 +484,19 @@ def launchBuildJobs(pipeline, globalVars, imageKeyToTag) {
484484 dockerfileStage : " release" ,
485485 ],
486486 ]
487+ def enabledStages = []
488+ if (params. buildInternalRelease) {
489+ enabledStages + = [" Build Internal release (x86_64 trtllm)" , " Build Internal release (SBSA trtllm)" ]
490+ }
491+ if (params. buildCiImage) {
492+ enabledStages + = [" Build CI Image (x86_64 tritondevel)" , " Build CI Image (SBSA tritondevel)" , " Build CI Image (RockyLinux8 Python310)" , " Build CI Image (RockyLinux8 Python312)" , " Build CI Image (SBSA Ubuntu24.04 Python312)" ]
493+ }
494+ if (params. buildNgcRelease) {
495+ enabledStages + = [" Build NGC devel And release (x86_64)" , " Build NGC devel And release (SBSA)" ]
496+ }
497+ buildConfigs = buildConfigs. findAll { key , config -> key in enabledStages }
498+ echo " Running stages: ${ buildConfigs.keySet()} "
499+
487500 // Override all fields in build config with default values
488501 buildConfigs. each { key , config ->
489502 defaultBuildConfig. each { defaultKey , defaultValue ->
@@ -552,6 +565,21 @@ pipeline {
552565 choices : [" build" , " push" ],
553566 description : " Docker image generation action. build: only perform image build step; push: build docker image and push it to artifacts"
554567 )
568+ booleanParam(
569+ name : " buildInternalRelease" ,
570+ defaultValue : true ,
571+ description : " Build internal release images (x86_64 and SBSA trtllm)"
572+ )
573+ booleanParam(
574+ name : " buildCiImage" ,
575+ defaultValue : true ,
576+ description : " Build CI images (tritondevel and OS variant images)"
577+ )
578+ booleanParam(
579+ name : " buildNgcRelease" ,
580+ defaultValue : true ,
581+ description : " Build NGC devel and release images (x86_64 and SBSA)"
582+ )
555583 }
556584 options {
557585 // Check the valid options at: https://www.jenkins.io/doc/book/pipeline/syntax/
0 commit comments