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 Practice Questions with 60 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments