-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins ver. 2.46.2
Pipeline 2.5
Pipeline Graph Analysis Plugin 1.3
Pipeline: Groovy 2.32
Create simple pipeline:
// Add fancy build parameter. properties([ parameters([ string( defaultValue: "asd", description: 'Some description', name: 'foo' ), ]) ]) print foo if (foo == "true") { print "true" } else { print "false" }
call pipeline/job with foo=true
Result:
[Pipeline] echo
asd
[Pipeline] echo
false
[Pipeline] End of Pipeline
Finished: SUCCESS
parametrized build passed variables is not being propagated to the pipeline.
I might be doing something wrong but this works on simple job.
[JENKINS-44509] jenkins pipelines Environment not working
Description |
Original:
Create simple pipeline: {code:java} // Add fancy build parameter. properties([ parameters([ string( defaultValue: "asd", description: 'Some description', name: 'foo' ), ]) ]) print foo if (foo == "true") { print "true" } else { print "false" } {code} call pipeline/job with foo=true Result: [Pipeline] echo asd [Pipeline] echo false [Pipeline] End of Pipeline Finished: SUCCESS parametrized build passed variables is not being propagated to the pipeline. I might be doing something wrong but this works on simple job. |
New:
Create simple pipeline: {code:java} // Add fancy build parameter. properties([ parameters([ string( defaultValue: "asd", description: 'Some description', name: 'foo' ), ]) ]) print foo if (foo == "true") { print "true" } else { print "false" } {code} call pipeline/job with foo=true Result: {code:java} [Pipeline] echo asd [Pipeline] echo false [Pipeline] End of Pipeline Finished: SUCCESS{code} parametrized build passed variables is not being propagated to the pipeline. I might be doing something wrong but this works on simple job. |
Component/s | New: openshift-pipeline-plugin [ 21023 ] | |
Component/s | Original: pipeline [ 21692 ] |
Its Openshift Related. If I create Pipeline from Openshift, it fails, if I create native - it works.