Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,457,751
Community Members
 
Community Events
176
Community Groups

Work from Linux Bamboo server to execute PowerShell script on remote Windows server

Hi,

  1. Will PowerShell Task work on Linux Bamboo server?
  2. Will it be able to execute commands on a remote Windows server either by inline commands or executing a script that is on the remote server?

thanks,

Chris

4 answers

1 vote

1) If you have Windows Bamboo Agents, you can use them to run PowerShell scripts within a build regardless of the OS of the Bamboo Server itself.

2) Are you trying to run PowerShell scripts on a remote computer other than a Bamboo Agent?  Like as part of a deployment?  That should be possible use the SSH task or something like that.

I want to notify you that PowerShell Task Addon supports Linux now (you just need to install pwsh). So answer on both questions is yes.

Yes, you need a Windows Bamboo agent to use PowerShell Task.

Well, shouldn't the build plan task be smart enough to not have windows powershell drop down available for a Linux Agent?  

Build plans know nothing about agents. Compatibility with agents is checked later when a build is about to be run. Then only appropriate agents are selected.

BTW, if you need running PowerShell on Linux PowerShell Task Addon supports it.

Like David Chin likes this

Thank you so much!  Sorry to complain about a thread that's 3 years old without doing my homework.  

The two agents are both local, so, no, they would have to be linux since this Bamboo instance is on linux. So it appears I would need to have a remote agent on the Windows server where I could use "PowerShell" task, or use an SSH task.

thanks

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events