In a declarative pipeline, I can specify the parameter that the pipeline expects right in the pipeline script like so:
pipeline {
parameters([
string(name
I did create it outside and it worked! Also, I'm using the boolean value and it's working like a charm on a scripted
version
// Parameters for the build
properties([
parameters([
booleanParam(name: 'DEPLOY_SHA', defaultValue: false),
])
])
podTemplate(name: ptNameVersion, label: ptNameVersion, containers: [
...
...
]
It shows the parameter