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
Hello, sorry to be a bother but I'd like to submit more that one extra arg and having trouble doing so.
What it's come down to is I'm having trouble connecting to my SSH server and need debugging on as well as the options I'm trying.
I'd like to send these 3 or more Extra args
-vvv [ip address]
-o IPQoS=none
-o ControlMaster=auto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From what I understand, you should have a new string in the args array anywhere that you have a space in the scp command. So for "-vvv -o IPQoS=none -o ControlMaster=auto", your options array should look like:
EXTRA_ARGS: ["-vvv", "-o", "IPQoS=none", "-o", "ControlMaster=auto"]
I'm not sure why you have the ip address after the -vvv, since the verbose option doesn't take a parameter.
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.