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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.