The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Access variables in pipelines on Windows runners

Preethi Sabbineni
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 31, 2022

How can we access repo/deployment variables in pipelines scheduled to run on Windows runners?

Able to access environment variables as below.


script:
- echo "$env:BITBUCKET_BUILD_NUMBER"

Repo variables doesn't work the same way.

script:
- echo $username

script:
- echo "$username"

script:
- echo '$username'

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Answer accepted
Preethi Sabbineni
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 31, 2022

Working as $Env:Name

TAGS
AUG Leaders

Atlassian Community Events