• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • None

      I want to trigger build if someone commit in Bitbuket's specific branch. Current...
      I want to trigger build if someone commit in Bitbuket's specific branch. Currently we can mention which branch to build but on setting remote triggers it trigger build on code commit in any branch not only in given branch.
      I set Jenkins hook as well as post receive hook which triggers build remotely but by giving branch name it give error that no git repo or branch is set.

      http://server/jenkins/git/notifyCommit?url=git@bitbucket.org:myrepogit[&branches=dev]
      Gives Response:
      No git jobs using repository: git@bitbucket.org:myrepo,git[ and branches: dev]
      No Git consumers using SCM API plugin for: git@bitbucket.org:myrepo.git[

      http://jenkins/git/notifyCommit?url=https://bitbucket.org/myrepo
      works fine and triggers build but as soon as I mention branch in url like:
      http://server/jenkins/git/notifyCommit?url=git@bitbucket.org:myrepogit[&branches=dev] 

      No git jobs using repository: git@bitbucket.org:myrepo,git[ and branches: dev]
      No Git consumers using SCM API plugin for: git@bitbucket.org:myrepo.git[

          [JENKINS-26482] Git trigger build on push in any branch

          Faisal Rabbani created issue -
          Stefan Thurnherr made changes -
          Attachment New: jenkins-gitPlugin-buildsForAllBranches.png [ 28781 ]
          Félix Belzunce Arcos made changes -
          Assignee Original: Nicolas De Loof [ ndeloof ] New: Félix Belzunce Arcos [ fbelzunc ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 160550 ] New: JNJira + In-Review [ 180401 ]
          Mark Waite made changes -
          Assignee Original: Félix Belzunce Arcos [ fbelzunc ]

            Unassigned Unassigned
            faisalalirabbani Faisal Rabbani
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: