Hello,
I'm trying to configure build using bitbucket pipelines on self-hosted Windows machine.
However, I can't access SSH repository URL via "BITBUCKET_GIT_SSH_ORIGIN" variable like in this example:
git remote set-url origin ${BITBUCKET_GIT_SSH_ORIGIN}
git remote set-url origin $BITBUCKET_GIT_SSH_ORIGIN" and also "echo BITBUCKET_GIT_SSH_ORIGIN". The latter command was supposed to print git repository SSH url but it didn't.
Hi @AlexanderS,
Windows Runners use PowerShell and environment variables in PowerShell can be accessed with $env:variable_name. So, you can access this variable with $env:BITBUCKET_GIT_SSH_ORIGIN
Please feel free to let me know if this works for you and if you need anything further.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's good to hear, you are very welcome!
Please feel free to reach out if you ever need anything else.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.