Hi we have a pipeline which is based on two steps:
1st. Rsync repo to server
2nd. Run ssh-run and execute 3 simple commands on server.
This is how its look:
## Building test environment
name: Deploy repo using rsync to hosting.espeo.dev
# trigger: manual # Uncomment to make this a manual deployment.
- pipe: atlassian/rsync-deploy:0.4.1
DEBUG: 'true' # Optional.
name: Shutdown and re-run containers
- pipe: atlassian/ssh-run:0.2.4
docker-compose up -d;
Environment variables are stored in Deployments menu at Test Environment.
For the first step everything goes perfect no matter whether we use $HOST_USER or $HOST_IP or username and ip. Unfortunately pipeline not passing if we use the same Env variables for ssh-run. Pipeline logs below:
Unable to find image 'bitbucketpipelines/ssh-run:0.2.4' locally
0.2.4: Pulling from bitbucketpipelines/ssh-run
9123ac7c32f7: Pulling fs layer
711c5c03e83f: Pulling fs layer
b362cee492e3: Download complete
362cee492e3: Pull complete
Status: Downloaded newer image for bitbucketpipelines/ssh-run:0.2.4
INFO: Executing the pipe...
/pipe.sh: line 23: SSH_USER: SSH_USER variable missing.
Why it is important for us, to use Variables instead plain username and host ip ? Because we would like to create second deployment env with another Variables defined inside . Is it an issue or we are doing something wrong?
PS. I also try do define variables named different in case if RSYNC in some way block variables but nothing changed, still we received error.
Thanks in advance for any tip!
Hi everyone, We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events