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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I skip default pipeline on pull request?

Edited

Hi,

In the project I am currently working on, I want to run the pipeline according to the following rules.

  1. Test and lint steps should run for each commit pushed to Branch.
  2. The test-with-coverage and lint steps must be run for each record opened with Pull Request.

The problem here is that if I push a commit to a branch that I have opened a pull request, the pipeline is triggered twice.


pipelines:
default:
- step: *lint
- step: *test
pull-requests:
'**':
- step: *lint
- step: *test-with-coverage

I looked for a way to skip default pipeline if a pull request exists, but I can't find it. I am open to suggestions and opinions.

Thanks

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Trello

Taco Tuesday: Your favorite Trello blog takeaway

Hello friends! From the community that brought you Welcome Wednesday, Throwback Thursday and Friday Fun, welcome to Taco Tuesday, a weekly discussion about all things Trello. The best part? One Tac...

67 views 4 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you