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.
Hi @Hui Zhao,
At the first glance it looks like this is a user permission issue. Can you please check if the system user running Bamboo has read/write/execute permissions in the script you're trying to run?
If you run Bamboo as Windows Service, please ensure that the account configured in the service has read/write/execute permissions.
I hope this helps!
Adding a small point further, on the 'Log on as a service' window, remove your username and then add again. Worked for me. Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.