How can a task use the value provided for TargetEnvironment?

A declarative Jenkins pipeline contains the following excerpt:

parameters {

string (name: ‘TargetEnvironment’, defaultValue: ‘staging’, description: ‘Target environment’)

}

How can a task use the value provided for TargetEnvironment?
A . {{TargetEnvironment}}
B . $TargetEnvironment
C . %TargetEnvironment%
D . ${params.TargetEnvironment}
E . $ENV{TargetEnvironment}

Answer: B

Latest 701-100 Dumps Valid Version with 60 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments