Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-10486

Git plugin doesn't limit polling/checkout of repo to specific branch



    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Duplicate
    • git-plugin
    • None
    • Jenkins v1.421, Git plugin v1.1.10


      We have a build against the repo at https://github.com/aptana/studio3-ruby, where we've specified "origin/development" as the "Branches to build".

      However, now it's picking up commits on origin/master. Here's the beginning of a bad build:

      Started by upstream project "studio3-core-development" build number 1607
      Building remotely on hudson-ubuntu1
      Checkout:studio3-ruby-development / /var/hudson/workspace/studio3-ruby-development - hudson.remoting.Channel@1d5e778:hudson-ubuntu1
      Using strategy: Default
      Last Built Revision: Revision 21fca4614c426857b71cb60cec448bd3a0679653 (origin/development)
      Checkout:studio3-ruby-development / /var/hudson/workspace/studio3-ruby-development - hudson.remoting.LocalChannel@1a43cda
      Wiping out workspace first.
      Cloning the remote Git repository
      Cloning repository origin
      Fetching upstream changes from git://github.com/aptana/studio3-ruby.git
      Cleaning workspace
      Commencing build of Revision 1a0bfdade287d963921953fcb0c82d36d08f5368 (origin/development)
      Checking out Revision 1a0bfdade287d963921953fcb0c82d36d08f5368 (origin/development)
      Cleaning workspace

      The revision pointed at there is actually on origin/master: https://github.com/aptana/studio3-ruby/commit/1a0bfdade287d963921953fcb0c82d36d08f5368

      While the latest HEAD for origin/development is https://github.com/aptana/studio3-ruby/commit/21fca4614c426857b71cb60cec448bd3a0679653


        Issue Links


            seadub Chris Williams created issue -

            Hmm, looks like a duplicate of JENKINS-10408

            seadub Chris Williams added a comment - Hmm, looks like a duplicate of JENKINS-10408
            seadub Chris Williams made changes -
            Field Original Value New Value
            Link This issue duplicates JENKINS-10408 [ JENKINS-10408 ]
            ndeloof Nicolas De Loof made changes -
            Assignee abayer [ abayer ] Nicolas De Loof [ ndeloof ]
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Resolved [ 5 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 140679 ] JNJira + In-Review [ 189191 ]
            markewaite Mark Waite made changes -
            Status Resolved [ 5 ] Closed [ 6 ]


              ndeloof Nicolas De Loof
              seadub Chris Williams
              0 Vote for this issue
              1 Start watching this issue