Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket pipelines

Dmitry Muz November 17, 2022

How can I provide a default pipeline variable (BITBUCKET_BRANCH for e.x.) to my remote host on Ubuntu via SSH? I mean something like:  ssh $user@$address "bash /var/www/pull.sh $BITBUCKET_BRANCH"

In such a case $BITBUCKET_BRANCH is always empty on bash executing

1 answer

1 vote
Dmitry Muz November 17, 2022

So I found out a great image from atlassian atlassian/ssh-run:0.4.1 and now it works

I just passed ENV_VARS: "BITBUCKET_BRANCH=$BITBUCKET_BRANCH" into variables

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events