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

How can I skip default pipeline on pull request?

Taylan Çapraz December 2, 2019

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
AUG Leaders

Atlassian Community Events