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

git plugin does not support / in branch names

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Component/s: git-plugin
    • Labels:
      None
    • Environment:
      git plugin 1.1.9, jenkins 1.423
    • Similar Issues:

      Description

      To reproduce:

      • Set up a job that checks out a project from git
      • Set "Branches to build" specifier to something/somethingelse (that's valid in your git project)
      • Try to build

      This gives me the following error:
      ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.

      Doing the following makes the job build fine:

      • git checkout -b something-somethingelse something/something else
      • git push origin something-somethingelse
      • Set "Branches to build" specifier to something-somethingelse

        Attachments

          Issue Links

            Activity

            jorgenpt Jørgen Tjernø created issue -
            jorgenpt Jørgen Tjernø made changes -
            Field Original Value New Value
            Description To reproduce:
            * Set up a job that checks out a project from git
            * Set "Branches to build" specifier to {{something/somethingelse}} (that's valid in your git project)
            * Try to build

            This gives me the following error:
            {{ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.}}
            To reproduce:
            * Set up a job that checks out a project from git
            * Set "Branches to build" specifier to {{something/somethingelse}} (that's valid in your git project)
            * Try to build

            This gives me the following error:
            {{ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.}}

            Doing the following makes the job build fine:
            * git checkout -b something-somethingelse something/something else
            * git push origin something-somethingelse
            * Set "Branches to build" specifier to {{something-somethingelse}}
            kostmo Karl Ostmo made changes -
            Link This issue duplicates JENKINS-14026 [ JENKINS-14026 ]
            ndeloof Nicolas De Loof made changes -
            Assignee abayer [ abayer ] Nicolas De Loof [ ndeloof ]
            Resolution Won't Fix [ 2 ]
            Status Open [ 1 ] Resolved [ 5 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 140769 ] JNJira + In-Review [ 189245 ]
            markewaite Mark Waite made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

              Assignee:
              ndeloof Nicolas De Loof
              Reporter:
              jorgenpt Jørgen Tjernø
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: