宣言的なJenkinsパイプラインには、次の抜粋が含まれています。 parameters { string (name: 'TargetEnvironment', defaultValue: 'staging', description: 'Target environment') } How can a task use the value provided for TargetEnvironment?
正解:D
In a declarative Jenkins pipeline, parameters can be accessed using the ${params.<parameterName>} syntax. This allows you to use the value provided for the TargetEnvironment parameter within your pipeline tasks. References: * Jenkins Declarative Pipeline Syntax * Jenkins Parameters