In my bamboo job I have a powershell 'script' task ('Run as Powershell script' checked) with following content:
@
<?xml version=1.0" encoding="utf-8"?>
<connectionStrings>
<add name="CargoContext" connectionString="" providerName="System.Data.SqlClient" ></add>
</connectionStrings>
"@ > ConnectionStrings.config
echo everything in order!
Ever since I added this task all builds fail, even though all tests are run and pass. I checked build logs and found following message (in red, probably meaning that this fails the build):
Unable to find executable at &('C:\Program Files\Bamboo\temp\CARGO-GATE2-JOB1-3-ScriptBuildTask-5984229618597029809.ps1'). Will try to run it anyway.
- Script executes normally (I can see the output in logs). Why is bamboo complaining? Can't it detect script generated by itself?
- Execution continues until all tests are ran and pass. If bamboo fails because of this task shouldn't it prevent next steps from running?
- How can I get this build to pass?