Uploaded image for project: 'Webhook To Jenkins for Bitbucket'
  1. JENK-53

Allow users to configure which Bitbucket events trigger Jenkins

    Details

    • Type: New Feature
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Labels:
      None

      Description

      If I merge into my development branch, then create a pull request from development branch to staging branch, I wind up with double builds from my development branch. Just creating the pull request seems to kick it off a build from development.

      From the log below, it looks like my commit at 8:25:08 kicks off a build of 2bacbcf154d976678ff508e66d2eec2678365c81.

      At 8:28:47, which is when my pull request was created, another build of 2bacbcf154d976678ff508e66d2eec2678365c81 was scheduled.

      And then at 8:32:16, with I approved the merge, the staging build kicks off for the merge commit, 1901f36b185d3174f1d7aa75335f9df856c8a5c0.

      I've got 2 different jobs, same repo, 1 setup to run from the staging branch, one setup to run from the development branch.

      This is on Stash v3.11.1, using Stash Webhook to Jenkins 2.7.1

      Log:

      ```
      Oct 15, 2015 8:25:08 PM FINE hudson.plugins.git.GitStatus
      Received notification for uri = https://stash/scm/app/android.git ; sha1 = 2bacbcf154d976678ff508e66d2eec2678365c81 ; branches = [development]
      Oct 15, 2015 8:25:08 PM FINE hudson.plugins.git.GitStatus
      Branch Spec development matches modified branch development for App Android Development.
      Oct 15, 2015 8:25:08 PM INFO hudson.plugins.git.GitStatus$JenkinsAbstractProjectListener onNotifyCommit
      Scheduling App Android Development to build commit 2bacbcf154d976678ff508e66d2eec2678365c81
      Oct 15, 2015 8:28:47 PM FINE hudson.plugins.git.GitStatus
      Received notification for uri = https://stash/scm/app/android.git ; sha1 = 2bacbcf154d976678ff508e66d2eec2678365c81 ; branches = [development]
      Oct 15, 2015 8:28:47 PM FINE hudson.plugins.git.GitStatus
      Branch Spec development matches modified branch development for App Android Development.
      Oct 15, 2015 8:28:47 PM INFO hudson.plugins.git.GitStatus$JenkinsAbstractProjectListener onNotifyCommit
      Scheduling App Android Development to build commit 2bacbcf154d976678ff508e66d2eec2678365c81
      Oct 15, 2015 8:32:16 PM FINE hudson.plugins.git.GitStatus
      Received notification for uri = https://stash/scm/app/android.git ; sha1 = 1901f36b185d3174f1d7aa75335f9df856c8a5c0 ; branches = [staging]
      Oct 15, 2015 8:32:16 PM FINE hudson.plugins.git.GitStatus
      Branch Spec staging matches modified branch staging for App Android Staging.
      Oct 15, 2015 8:32:16 PM INFO hudson.plugins.git.GitStatus$JenkinsAbstractProjectListener onNotifyCommit
      Scheduling App Android Staging to build commit 1901f36b185d3174f1d7aa75335f9df856c8a5c0
      ```

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                andrey Андрей Левченко (Inactive)
                Reporter:
                Anonymous
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Upwork Job Post

                    Other reporter's issues