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

Disable all branch scanning when triggering specific branch

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • p4-plugin
    • CloudBees Jenkins Enterprise 2.332.1.5
      P4 Plugin 1.12.2

      Dear Engineers,

      I have configured a multi branch pipeline using Helix Branches, my repository contains around 40 heavy branches, Initially it scans all the branches and it creates jobs for each branch if Jenkinsfile present. But when I manually triggering any of a particular branch job, it again scans all the branches to get changelist(p4 dirs //depot/PROJ/*) for Jenkinsfile. It should only get changelist for specific branch and do the checkout of Jenkinsfile. It adds a lot of build time for builds.

      Is there anyway to disable all branch scanning for Jenkinsfile, when specific branch build triggered? Or someone can give me pointers so I can make this relevant change.

       

      Thanks,

      Velu

          [JENKINS-68374] Disable all branch scanning when triggering specific branch

          Velusamy Krishnan created issue -
          Velusamy Krishnan made changes -
          Description Original: Dear Engineers,

          I have configured a multi branch pipeline using Helix Branches, my repository contains around 40 heavy branches, at initial scans all the branches it creates jobs for each branch if Jenkins file present. But when I manually triggering any of a particular branch job, it again scans all the branches to get changelist(p4 dirs //depot/PROJ/*) for Jenkinsfile. It should only get changelist for specific branch and do the checkout of Jenkinsfile. It kind of adds a lot of build time for for builds.

          Is there anyway to disable all branch scanning for Jenkinsfile, when specific branch build triggered? Or someone can give me pointers so I can make this relevant change.

           

          Thanks,

          Velu
          New: Dear Engineers,

          I have configured a multi branch pipeline using Helix Branches, my repository contains around 40 heavy branches, Initially it scans all the branches and it creates jobs for each branch if Jenkinsfile present. But when I manually triggering any of a particular branch job, it again scans all the branches to get changelist(p4 dirs //depot/PROJ/*) for Jenkinsfile. It should only get changelist for specific branch and do the checkout of Jenkinsfile. It adds a lot of build time for builds.

          Is there anyway to disable all branch scanning for Jenkinsfile, when specific branch build triggered? Or someone can give me pointers so I can make this relevant change.

           

          Thanks,

          Velu
          Karl Wirth made changes -
          Link New: This issue duplicates JENKINS-64946 [ JENKINS-64946 ]
          Velusamy Krishnan made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          Karl Wirth made changes -
          Labels New: P4_SUPPORT

            Unassigned Unassigned
            velkrish Velusamy Krishnan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: