We are using the following pipe
- pipe: atlassian/ssh-run:0.2.2
variables:
SSH_USER: $DEPLOYMENT_USER
SERVER: $DEPLOYMENT_SERVER
MODE: script
COMMAND: "scripts/deploy.sh $BITBUCKET_COMMIT $BITBUCKET_BUILD_NUMBER"
but we are not able to pass parameters to deploy.sh script that will be run on remote server. Such error will be shown: no such file or directory: deploy.sh foo bar
Could you support parameters for remote scripts?
Yes, use the envsubst to replace the variables in your script(in your script with $VARIABLE) per local variables of the pipeline(out a new script with the variables replaced, $VARIABLE => Value).
Official example:
Is there an answer to this? I'm facing the same issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.