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,456,384
Community Members
 
Community Events
176
Community Groups

How do I switch the Windows runner to use PowerShell 7?

In the argument list of runner.jar, there is

-Dbitbucket.pipelines.runner.runtime=windows-powershell

How do I get the runner to execute in PowerShell 7?

1 answer

0 votes
Mateus T Atlassian Team Aug 10, 2022

Hi @Mattias Vannergård 

Thank you for reaching out to the Atlassian Community!

Currently, Windows runners will always use the same version of PowerShell as the path to the executable is hardcoded into the runner. I can see how having the ability to specify the version could be helpful, so in order to address this, I've raised the following Feature Request with our development team:

Our development team will give a first-hand update through that ticket if there's any progress made so I would suggest keeping a watch for it. Please note that all enhancements are implemented with this policy in mind.

In the meanwhile, you can work around this by switching the hardcoded path to have the new desired PS version locally. You can find all the detailed steps on how to achieve this inside the Feature Request.

Cheers,

Mateus T

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events