Solved

A Declarative Jenkins Pipeline Contains the Following Excerpt: Parameters

Question 3

Multiple Choice

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}

Correct Answer:

verifed

Verified

Related Questions