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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


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
Community Members
Community Events
Community Groups

Is it possible to skip a push if image already exists in ECR?

I have a pipe which pushes to Amazon ECR. The repository is immutable. Can I configure the plugin, so that the pipeline skips pushing the image, if it already exists in ECR?

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jun 02, 2022

Hi @Tom Müller

Welcome to the community.

Unfortunately, it's not possible to skip the entire build for validating if an ECR image exists.
However, I do believe it would be possible if you could validate if an ECR image exists first then do a signal through an environment variable and lastly, do an if/else against the result.

Here's an example YAML configuration:

    - step:
        name: Test
          - export ECR_PUSH=0
          - echo "Validation here" # Validate if an ECR exists here then change the ECR_PUSH to 1 if it exists
          - if [ $ECR_PUSH = 1 ]; then echo "Proceed"; else exit 0; fi
          - pipe: some/pipes_here:1.0.1
              VAR_TEST: "TEST"

Hope it helps and let me know if you have further questions that I can help with.

Mark C

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events