Possibly multiple workflows kicked off(trigger map falls through)

Hello,
We are using the following trigger map in our yml config.

trigger_map:

  • push_branch: master
    workflow: build-test-deploy-master
  • push_branch: release/*
    workflow: build-test-deploy-release
  • push_branch: feature/*
    workflow: build-test-pr
  • pull_request_target_branch: feature/*
    workflow: build-test-pr-no-ui-tests
  • pull_request_target_branch: master
    workflow: build-test-pr

When we merge master into a feature/* branch - which has a PR open pointing to the master branch, we see two builds kicked off.

Looks like the following two conditions are triggered in the map:

  • push_branch: feature/*
    workflow: build-test-pr

and

  • pull_request_target_branch: master
    workflow: build-test-pr

Do we have the trigger map set up in a wrong way? Thanks for the help.

Examples:

Bitrise - Mobile Continuous Integration and Delivery - iOS & Android Build Automation (which I aborted)

Hi Vicson. Perhaps two webhooks are being sent from your version control system, each triggering an independent build. The first is a PR event that occurs when the PR was merged, and the second is a push event based on the update to the master branch. This is just a guess, and the real way to determine what’s going on is to review the webhook history in your version control system. The exact instructions are dependent on your vendor. For example, here are the Gitlab instructions: Webhooks | GitLab

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.