#- if [ $Env:CHANGEBUILDNUMBER == 'Yes' ]; then ./ChangeBuildVersion2.bat $Env:BITBUCKET_BRANCH $Env:BUILDVERSIONNUMBER $Env:BITBUCKET_CLONE_DIR\eLookCommon > $Env:BITBUCKET_CLONE_DIR\Buildlogs\ChangeBuildVersion2.log; fi
The above commented out "if [" line fails because it is looking for an '(' after the if.
So, went to PowerShell format....
- if($Env:CHANGEBUILDNUMBER -eq "Yes") {
echo "CHANGEBUILDNUMBER Variable was Yes, so the build number will be changed."
# echo "CHANGEBUILDNUMBER was NOT Yes, so the build number will NOT be changed."
# }
-----------------------------
The 'if' line that you see above (and the commented out else code), do not execute and do not give any errors. This is what the output look like, basically it is just showing the entire if statement...
Is anyone using Bitbucket 'Runners for windows'? There is absolutely no examples (that I can find).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.