The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events