Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Pipe "rsync-deploy" does not work with `--rsync-path`

Marvin Heilemann January 25, 2024

I am unable to use spaces in `--rsync-path`. Tried these variants:

 

- EXTRA_ARGS as Array: `- "--rsync-path=sudo -u www-data rsync"`

- `"--rsync-path=sudo -u www-data rsync"`

- `--rsync-path=sudo -u www-data rsync`

- `--rsync-path="sudo -u www-data rsync"`

- `--rsync-path='sudo -u www-data rsync'`

2 answers

0 votes
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 26, 2024

Also you could check this answer if example in my first message will not help:
https://community.atlassian.com/t5/Bitbucket-questions/EXTRA-ARGS-filter-bug/qaq-p/2107584

0 votes
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 26, 2024

Hi @Marvin Heilemann . Here is example with an EXTRA_ARGS as an array when you have multiple args or whitespace characters to cover cases with escaping.

script:
  - pipe: atlassian/rsync-deploy:0.12.0
    variables:
      USER: 'ec2-user'
      SERVER: '127.0.0.1'
      REMOTE_PATH: '/var/www/build/'
      LOCAL_PATH: 'build'
      DEBUG: 'true'
      EXTRA_ARGS:
        - "--filter=P assets/css" # double quotes here are necessary
        - "--exclude=*.txt"

Are you sure you follow this example?
Provide us with the error details if you will still have this issue. Also you could see the generated rsync command in the logs.

Regards, Igor

elanclarkson May 29, 2024

This solution worked for me.

E.g.

EXTRA_ARGS:
- "-og"
- "--chown=apache:apache"
- "--chmod=D775,F664"
- "--rsync-path=sudo rsync"

 

Thanks @Igor Stoyanov!

Like Igor Stoyanov likes this

Suggest an answer

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

Atlassian Community Events