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

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

Mattias Vannergård August 2, 2022

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
Atlassian Team members are employees working across the company in a wide variety of roles.
August 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
AUG Leaders

Atlassian Community Events