Bamboo, SSH, cygwin and use of SSH TASK from bamboo on Windows VM

Hi Everyone,

 

I want setup a Virtual Machine (VM) during the run of the Bamboo Plan on Bamboo Remote Agent.

I start the plan, Vagrant starts up VM and I want to use SSH TASK in bamboo to login to this started VM and run some commands. The VM is Windows. It has cygwin installed so that I can log in to Windows VM via SSH.

 

When I log in via Putty I can use Environment variables I defined in Windows however when I try to use them from SSH TASK in Bamboo I am not able to do so.

 

I have defined the Environment Variables in the settings of Windows, in the user profile in cygwin, in the general profile script in cygwin. None of this works when I use it via Bamboo.

 

Is there something I forgot to set up?

 

Thank you.

1 answer

Hello,

 

It's an cygwin security feature here's the information:

http://www.cygwin.com/ml/cygwin/2006-10/msg00729.html

http://www.cygwin.com/ml/cygwin/2006-11/msg00397.html

http://www.cygwin.com/ml/cygwin/2008-02/msg00386.html

 

I am not sure why it works in Putty, but I would try adding the variables to .profile etc. This way it's more like linux env variable insertion. 


Also if your up to using something new I would use remote Powershelling which would enable you to run most commands in provisioning phase. I prefer using powershell in windows as it supports native functions more than the cygwin. But yeah cygwin should work with local user permissions. 

 

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
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,790 views 0 6
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