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,560,626
Community Members
 
Community Events
185
Community Groups

Execute bash script from Bamboo

Hi! 

I am trying to execute several simple bash commands from the Script task in bamboo, but with no luck, I've searched all related answers on the topic, but this didn't help, unfortunately. 

https://community.atlassian.com/t5/Bamboo-questions/Making-a-Bamboo-Script-execute-using-bin-bash/qaq-p/205364 for instance. 

I also tried 

#!/bin/bash
bash /path/to/some/shell/script/on/bamboo/server/script.sh

I need to rm -rf the directory and then move the build directory from bamboo instead. 

I am using bamboo user, the directory owner is bamboo, I even tried to change folder permissions to 777 just for the test, but all the time I receive "Permission denied" in the script task.

I tried to echo $"USER" at the begging of the script, and it gives me the correct result - the user is bamboo. 

I am a little bit confused, could you please help me?

My Bamboo version is 7.1.1

Ubuntu 18.04

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events