Forums

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

RUNNER_UUID environment variable availability

sreeram.anikodemahadevan October 20, 2025

Dear Community
I have a self hosted windows runner.
Here an stripped down version of my yaml


pipelines:
default:
- step:
runs-on:
- self.hosted
- windows
name: Echo Runner UUID
script:
- Write-Output "The Runner UUID is: $env:RUNNER_UUID"

 Is it possible to get the RUNNER_UUID inside the script block? The help doc says its there for linux OS, but no mention of window OS.


Can you please advice?

1 answer

1 accepted

1 vote
Answer accepted
sreeram.anikodemahadevan October 20, 2025

I think I found my answer
The key was to set an environment variable env:RUNNER_UUID before the .\start.ps1 was called.
And then use that environment variable as the value for the -runnerUuid{$env:RUNNER_UUID} when you call .\start.ps1

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events