Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,316
Community Members
 
Community Events
176
Community Groups

Cannot access network path with bamboo

Shared/Network drive not accessible through bamboo test execution


**Architecture**

Bamboo Server (Windows)

Agent (Windows)

Selenium Nodes (Windows)

Java, Cucumber and JUnit

Bitbucket

 

We have a requirement to access files located at some shared location while executing tests from Bamboo Plans.

All the corresponding servers have access to the shared. Manually verified.

File file = new File("\\\\SHARED_DRIVE\\Folder\\Automation\\download");
System.out.println(file.exists());
System.out.println(file.isDirectory());
System.out.println(file.isFile());


Scenario 1 : Executing test through IDE (locally)

true
true
true

Scenario 2 : Executing test on Agent's VM

true
true
true

Scenario 3 : Executing test through Bamboo Plan

false
false
false
 

As stated above, results were false while accessing shared drive when we were executing tests though Bamboo plan.

As stated in Scenario 2, we have manually logged in to the Agent's VM and executed maven goal and checked the logs


What could be the possible issue here?

2 answers

Is there any solution for this issue?

0 votes

Hi Ankit,

The first thing to check would be the user/privileges the Bamboo plan is running under.  It would make sense if the other tests worked based on the privileges/user you used.

Another thing I would try is the IP address instead of the FQDN.  I have seen this work and have heard from other Support Engineers this has worked.

Let me know and we'll go from there.

Cheers,

Branden

Hi Brandon

i have tried using IP as well but no luck.

 

also checked the user priveleges. The same user checks out the repo to a bamboo agent but unable to access the share drive. 

Bamboo agent where the code is checked out can access the share drive when i manually login with the same user and test was executed as expected. But when the bamboo server triggers the test, java’s isDirectory() returns false for the share drive path.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events