I have 2 declarative jenkins pipeline, "A" and "B".
"B" has a boolean parameter named "TEST" with the default value as 'false'.
I am calling pipeline "B" from "A" as below:
build job: 'B', parameters:[booleanParam(name: 'TEST', value:'true')], wait: true
However, the pipeline "B" is getting executed with the default value of 'false' only.
I tried toBoolean() method as well, however, it was blocked during the pipeline execution stating requires script approval.
I found another post related to it: Overriding default parameter when building one Jenkins pipeline from another
But no solution there too.
Any suggestions.