Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bamboo task powershell fails to find object path

Jagdish
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 9, 2018

I want to upload files from network location contains my source code. I have written the powershell script to copy files to Bamboo working directory. But it is not able to read the files form network location. Telling object path does not exist.

 

Same script is working in powershell editor.

3 answers

0 votes
Jeyanthan I
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 12, 2018

Glad it helped, Jagdish. As you found that answer helpful, please don't forget to mark the answer as Accepted. :)

0 votes
Jagdish
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 12, 2018

Thank you for comment Jeyanthan, you are right that is issue of network accessibility.  

0 votes
Jeyanthan I
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 9, 2018

Hi Jagdish,

This looks like an environment issue to me. We do not know how you have defined the copy path in your script. I suggest you isolate the problem by simplifying the script and see if that helps.

As you say that the script is working in the Powershell editor, check if the user as which Bamboo is running has the right set of environment variables and permission to access the network drive.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events