You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I'll probably forget to include some details, so bear with me.
To demonstrate my problem I have created a simple plan. It's the sole purpose to verify a file exists by doing an "ls -ls <filename>".
It fails. What am I doing wrong? I suspect ist has something to do with permissions on the build agent VM.
On the build agent machine, a linux VM, I run the command
> /usr/bin/ls -ls /home/bgillespie/ivy
total 8
0 drwxr-xr-x. 2 bamboo bamboo 215 Feb 19 16:10 cache
4 -rwxrwxrwx. 1 bgillespie bgillespie 2602 Feb 19 15:43 ivyconf.xml
4 -rwxrwxrwx. 1 bgillespie bgillespie 218 Feb 18 13:40 ivy.properties
Output from the build log when I run the plan in bamboo:
...
simple 19-Feb-2020 17:13:20 Starting task 'see if ivyconf.xml found' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.command' command 19-Feb-2020 17:13:20 Beginning to execute external process for build 'TEST - BRIAN_TEST - BUILD #1 (TEST-BRIANTEST-JOB1-1)'\n ... running command line: \n/usr/bin/ls -ls /users/bgillespie/ivy\n ... in: /home/bamboo/agent-2-home/xml-data/build-dir/TEST-BRIANTEST-JOB1
...
error 19-Feb-2020 17:13:20 /usr/bin/ls: cannot access /users/bgillespie/ivy: No such file or directory simple 19-Feb-2020 17:13:20 Failing task since return code of [/usr/bin/ls -ls /users/bgillespie/ivy] was 2 while expected 0 simple 19-Feb-2020 17:13:20 Finished task 'see if ivyconf.xml found' with result: Failed
The directory itself is wide open permission wise
ls -lsd /home/bgillespie /home/bgillespie/ivy
0 drwxrwxrwx. 11 bgillespie bgillespie 280 Feb 19 15:55 /home/bgillespie/
0 drwxrwxrwx. 3 bgillespie bgillespie 77 Feb 19 16:10 /home/bgillespie/ivy
thanks,
As a test I got a new VM spun up with same OS, installed the needed software including a new bamboo client and now my problem is gone. Apparently some kind of a problem with the build agent I was using.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.