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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.