You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.