Reputation: 13
I need to know if is it possible to show, in a jenkins parmetrized build pipeline, a parameter value inside a message of an input step.
ex:
input message: 'Input Data: \n\t ServerName: ${SERVERNAME_FQDN}\n\t
Approve?', submitter: 'user1,user2'
thanks in advance, Pietro
Upvotes: 1
Views: 2602
Reputation: 42184
You can use double quoted GString to interpolate internal variables. For instance:
input message: "Input Data: \n\t ServerName: ${SERVERNAME_FQDN}\n\t Approve?", submitter: 'user1,user2'
should interpret variable SERVERNAME_FQDN
and put its value in place.
Upvotes: 2