Have defined parameter for my pipeline projects in the main pipeline script:
properties([[$class: 'ParametersDefinitionProperty', parameterDefinitions: 
[[$class: 'BooleanParameterDefinition', defaultValue: false, description: 
'Description', name: 'PROP_VERIFY']]]])

After building the first time with this I get the option "Build with 
Parameters".

Doesn't matter how I start a new build. Either manually or in the script:
build job: '../projectA/master', parameters: [[$class: 
'BooleanParameterValue', name: 'PROP_VERIFY', value: true]]
The environment variable env.PROP_VERIFY is not available. It it always 
null.

After building I am checking the following URL and can se that the 
parameter is set:
http://server.company.com:8080/job/projectA/job/master/70/parameters/

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/85e293f2-1758-4c7f-a9f8-97daf7a02bf1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to