Missed Team ’24? Catch up on announcements here.

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

How do I insert bitbucket variables into a pipeline string?

Ivan Yakushenko December 10, 2020

For example, I need to run the following command:

image: atlassian/default-image:latest

pipelines:
default:
- step:
script:
- apt-get install sshpass
- sshpass -p $SSH_PASS ssh -o StrictHostKeyChecking=no -p $SSH_PORT $SSH_USER@$SSH_IP 'echo "$SSH_PASS" | sudo -S python3 /var/www/deploy.py -t api -gu $GITUSER -gp $GITPASSWORD'
- echo "Done"

It's okay if I just write the lines I need, but in this form the variables are not interpreted. How do I insert them correctly?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events