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

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