Problem with scp-deploy pipe documentation & yaml scheme

Chris Flora December 5, 2024

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:

YAML Definition

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:

scp-deploy.jpg

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

1 answer

1 accepted

2 votes
Answer accepted
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 6, 2024

Hi @Chris Flora 

Thank you for your question!

We'll update the documentation and notify you.

 

Best regards,
Oleksandr Kyrdan

benjamin January 6, 2025

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

Chris Flora January 7, 2025

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events