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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,557,819
Community Members
 
Community Events
184
Community Groups

EXTRA_ARGS: --filter bug

There seems to be an issue with proper escaping of filters in the rsync EXTRA_ARGS variable.

  • Version: atlassian/rsync-deploy:0.7.1
  • log:
    INFO: Executing the pipe...

    INFO: Starting RSYNC deployment to server:$THEME_DIR...

    rsync -rp --delete-after --filter='P assets/css' --exclude-from=project/rsync-excludes ./ user@server:$THEME_DIR

    Unknown filter rule: `'P'

    rsync error: syntax or usage error (code 1) at exclude.c(927) [client=3.1.3]

    ✖ Deployment failed.
  • steps to reproduce:
    • Try to run --filter inside the EXTRA_ARGS variable

1 answer

0 votes
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Aug 19, 2022

@bobby jenrow hi. Thanks for your feedback.

Your error is due to whitespace in your filter command.
Try this in your pipe variables:

script:
- pipe: atlassian/rsync-deploy:0.7.1
variables:
...
'EXTRA_ARGS_COUNT'
: 1,
'EXTRA_ARGS_0': "--filter=P assets/css"

 

or if you have more then one extra arg in example 2 args:

script:
- pipe: atlassian/rsync-deploy:0.7.1
variables:
...
'EXTRA_ARGS_COUNT'
: 2,
'EXTRA_ARGS_0': "--filter=P assets/css",
'EXTRA_ARGS_1': "--exclude=*2.txt"

 Double quotes is necessary.
We will update the README to provide this example as workaround for whitespaces.

Regards, Igor.

Suggest an answer

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

Atlassian Community Events