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

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

1 vote

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 @Jey: 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
Jey Atlassian Team Aug 22, 2017

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
Community showcase
Published in Bamboo

Unable to add or edit Bitbucket Cloud repository in Bamboo

On 31 May, a GDPR-related change went live in the Bitbucket Cloud API that resulted in users not being able to create or edit Bitbucket Cloud Linked repositories in Bamboo. This API update removed t...

659 views 2 7
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