The scp-deploy pipe's README.md, as it's first example, shows that the proper format for the EXTRA_ARGS command is a string:
Add the following snippet to the script section of your bitbucket-pipelines.yml
file:
- pipe: atlassian/scp-deploy:1.5.1 variables: USER: '<string>' SERVER: '<string>' REMOTE_PATH: '<string>' LOCAL_PATH: '<string>' # SSH_KEY: '<string>' # Optional. # EXTRA_ARGS: '<string>' # Optional.
However, the examples further down show the proper syntax, which is an array of strings:
EXTRA_ARGS: ['-o', 'ServerAliveInterval=10']
Further, the yaml schema in vscode expects a string and not an array. It shows the array as an error:
The array runs perfectly, it just took me a minute to figure it out due to the false flags. Any way we can get the documentation and the yaml-schema updated?
Thanks,
Chris
Hi @Chris Flora
Thank you for your question!
We'll update the documentation and notify you.
Best regards,
Oleksandr Kyrdan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.