Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

LPI Exam 701-100 Topic 8 Question 42 Discussion

Actual exam question for LPI's 701-100 exam
Question #: 42
Topic #: 8
[All 701-100 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: E

Contribute your Thoughts:

I think option D is correct, as it uses the params object to access the TargetEnvironment parameter.
upvoted 0 times
...
Erinn
5 days ago
I'm not sure, but I think it might be E) $ENV{TargetEnvironment}
upvoted 0 times
...
Shawnee
6 days ago
I agree with Raina, D) ${params.TargetEnvironment} makes sense because it references the parameter value
upvoted 0 times
...
Raina
12 days ago
I think the correct answer is D) ${params.TargetEnvironment}
upvoted 0 times
...

Save Cancel