Skip to content

Commit 01b2def

Browse files
authored
infra: [TRTLLM-6331] Support show all stage name list when stage name check failed (NVIDIA#5946)
Signed-off-by: ZhanruiSunCh <[email protected]> Signed-off-by: Zhanrui Sun <[email protected]>
1 parent 24dfd4c commit 01b2def

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jenkins/L0_Test.groovy

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1642,7 +1642,8 @@ def checkStageNameSet(stageNames, jobKeys, paramName) {
16421642
echo "Validate stage names for the passed GitLab bot params [${paramName}]."
16431643
invalidStageName = stageNames.findAll { !(it in jobKeys) }
16441644
if (invalidStageName) {
1645-
throw new Exception("Cannot find the stage names [${invalidStageName}] from the passed params [${paramName}].")
1645+
def sortedJobKeys = jobKeys.sort()
1646+
throw new Exception("Cannot find the stage names [${invalidStageName}] from the passed params [${paramName}]. Available stage names (${sortedJobKeys.size()} total):\n${sortedJobKeys.collect { " ${it}" }.join('\n')}")
16461647
}
16471648
}
16481649

0 commit comments

Comments
 (0)