On Jenkins installed on windows 7, I choose :
This build is parameterized
Add a Boolean parameter named WIN7
Then in Windows batch command I want to do something if WIN7 parameter is selected.
How boolean are converted? I tried the following but no success
IF %WIN7%=="true" (
)
Also :
echo %WIN7%
is printing true
IF "%WIN7%"=="true" (
...
)
Quotes are also part of the compared string.And are required when there is a space within the compared values.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With