P3pp3r
P3pp3r

Reputation: 13

jenkins pipeline: parameters in input message

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

Answers (1)

Szymon Stepniak
Szymon Stepniak

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

Related Questions