It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage
Highlighted

Bamboo SSH Task

Hi All,

We have a situation in our Bamboo plan , where we need to do ssh to two different Linux machine based on release branch ( build for older code happens on lets say BuildMachine1 and for new code happens on BuildMachine1 ).

Bamboo Server connect via ssh to build server in order to execute this.

 

Now for 2 different release we need to connect to 2 different machine ,keeping the jobs/tasks same.

In SSH task, we can over ride SERVER_HOSTNAME , but its not possible to provide password on run time.So in this case somebody has to update all the ssh tasks manually to run build for 2 different branches. 

Not at all a good option !!

Can you please help in case we can achieve this in some other way.

1 comment

Hi Rafael,

 

Thanks for the input but Server on which bamboo is hosted is not in our control so only way to access build server to do the build is to use Out of box Bamboo functionality of ssh task .

Now comes the situation where two different build server needs to be accessed via ssh based on which version of build we want to do.

 

Is there anyway we can achieve from Bamboo ? Seems like a real world scenario . 

 

Regards,

Ashish Panwar

Hi @Ashish Panwar ,

You will have to generate a SSH Key pair (private and public key) and copy the SSH public key to the remote server (server where you are SSH into) placing it under authorized_keys.

Alternatively, you can make use of SSH keys without passphrase.

Kind regards,
Rafael

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

323 views 0 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you