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
It works, thanks a lot!
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.