Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.
×I have a PowerShell script that is pulled from a repo. It accepts the following parameters:
${bamboo.arg1} ${bamboo.arg2} ${bamboo.arg3} ${bamboo.arg4} "1"
The "1" would be converted to a boolean value. I've also tried it with "`$true", '$True, $true, etc etc. I've even tried strings that would fail on the boolean conversion, such as "WHY" and "WHAT IS GOING ON". All values result in this error:
"A positional parameter cannot be found that accepts argument '<value I passed in>'."
Interestingly, I also made the last parameter mandatory and didn't pass it in, and it still runs successfully. What am I missing? It runs perfectly well from PS if I call the script directly, but Bamboo will not accept the parameter.