I need value that user entered on the pipeline start to be used in the pipeline,
Pipeline is running on self-hosted windows agent and I need value to be used in PowerShell
My pipeline looks like this -
```
```
I enter `myValue` on pipeline run, but Write-Output displays `myVar = true` instead of `myVar = myValue`
If I use built-in variables, e.g. `Write-Output "myVar = $env:BITBUCKET_BUILD_NUMBER"` output is with correct value (`myVar = 22`)
So how can I get the value that user entered on pipeline start?
Hello @Dmitriy Kagarlickij ,
thank you for reaching out to Community!
The custom variables provided on the pipeline start should also work on Windows Runners with no required additional configuration.
I was able to confirm that in my test environment with Windows runners, where the variable provided was correctly printed in the logs with the value put at the pipeline start.
In this case, to confirm if the variable is being passed to the build, could you expand the Build Setup section on the logs, and look for the session named Pipeline variables ? That section will contain all the custom variables provided to the pipeline :
In the example above, I had a variable named myVar and provided the value "testingValue" when triggering the pipeline.
Could you verify if your pipeline has a similar log?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.