I have a task which is to execute a PowerShell script. However the system can not find it.
Unable to find executable at C:\Source\dockerdemo\DockerDemo\src\DockerDemo\CustomDockerProfile.publish.ps1. Will try to run it anyway.
See the plan image.
script.PNG
After read https://answers.atlassian.com/questions/11962663
I used a command task. I got a different error:
E:\bamboo-home\xml-data\build-dir\DOC-DOC-JOB1\CustomDockerProfile.publish.ps1
: The term 'E:\bamboo-home\xml-data\build-dir\DOC-DOC-JOB1\CustomDockerProfile.
publish.ps1' is not recognized as the name of a cmdlet, function, script file,
or operable program. Check the spelling of the name, or if a path was
included, verify that the path is correct and try again.