From aef0ef0739795264add1c0a015bb81e241352ecf Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Fri, 16 Oct 2020 16:34:59 +0100 Subject: [PATCH] [CI] Add stage name in the step (#21887) --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index e969ff2acdb..12700ea22ff 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -206,7 +206,7 @@ def target(Map args = [:]) { // make commands use -C while mage commands require the dir(folder) // let's support this scenario with the location variable. dir(isMage ? directory : '') { - cmd(label: "${command}", script: "${command}") + cmd(label: "${args.id?.trim() ? args.id : env.STAGE_NAME} - ${command}", script: "${command}") } } }