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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.