Execute remote windows batch file from bamboo cloud

Hi,

 Presently we have cloud version of Bamboo 

https://bamboo-qa.basf.net/allPlans.action.

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

This widget could not be displayed.

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

This widget could not be displayed.

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 Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

99 views 1 0
Join discussion

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