Execute remote windows batch file from bamboo cloud


 Presently we have cloud version of Bamboo 


I have a batch file run_script.bat in my local machine. Can you please let me know how to setup a Bamboo plan/job to call the windows batch file. Because the script needs Worksoft environment which is present on my laptop. I just need to run this batch file from Bamboo Cloud.

PLease give me in detail steps.

2 answers

1 votes

First of all I'd suggest to remove Bamboo Cloud reference from your question and label. Bamboo Cloud was dismissed year ago so you probably talk about Bamboo Server.

You have at least two options to execute some file from your laptop by Bamboo which is running at other server.

1. First option is described by @Jeyanthan Inbasekaran: setup SSH access to your laptop from other server and use SSH task which can be executed on Bamboo local agent

2. Setup remote agent on your laptop and use Script task to execute bat file from your laptop's disk. You need to configure you Bamboo job to be didicated to remote agent hosted on your laptop

0 votes

How about using an ssh task in Bamboo to login to your Windows machine and execute your batch script from cmd prompt?

Note that you will have to install SSH server on your machine, so that Bamboo can ssh into your machine. Latest version of Windows now comes with SSH server by default.

Hope that helps.

You mean that I have to intall SSH server on my local machine which is a windows 8.1 ( Not a server) and then generate the SSH keys. Also when I set up SSH task in Bamboo it is asking for username and password.  Can I give my userID and PWD or Do I need Admin user.  My local machine and Bamboo cloud are in the same LAN network. Please suggest.

Suggest an answer

Log in or Join to answer
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,066 views 0 5
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot