Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Pipeline runs twice everytime a PR is merged

Abhinay Agarwal
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 6, 2018

We recently started using pipeline for our open-source Mercurial project ControlsFX and we love it :D

Pipeline Details


We have 2 different branches - default and 9.0.0. We want to run default only when a PR targeted to default branch is merged. Similarly, run 9.0.0, when a PR targeted to 9.0.0 branch is merged.

pipelines:
  branches:
    default:
      - step:
          name: Build and assemble default branch
          image: cogniteev/oracle-java:java8
          caches:
            - gradle
          script:
            - chmod +x gradlew
            - ./gradlew clean assemble
    9.0.0:
      - step:
          name: Build and assemble 9.0.0 branch
          image: abhinay/oracle-java:java10
          caches:
            - gradle
          script:
            - chmod +x gradlew
            - ./gradlew clean assemble

 

Problem

After introducing the change to pipeline for branches, it has been running twice for the same commit. We are not sure what's going wrong.

 

We appreciate the help.

Thanks.

2 answers

0 votes
infinitydave
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 3, 2019

In my case this was caused by having multiple webhooks configured in my repo -> settings.

0 votes
Steven Vaccarella
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 13, 2018

Hi Abhinay,

If you haven't already done so could you please raise a support ticket here: https://support.atlassian.com/contact

Be sure to include a link to the result page for one of the affected pipelines.

Cheers,
Steven

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events