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

          Karl Wirth added a comment -

          Hi velkrish - Can you please check JENKINS-64946. To me it looks like the same problem. That contains a workaround and I beleive we are about to release a possible fix for the problem.

          Karl Wirth added a comment - Hi velkrish - Can you please check JENKINS-64946 . To me it looks like the same problem. That contains a workaround and I beleive we are about to release a possible fix for the problem.

          Thank you p4karl , I have checked for streams, now it is doing checkout only for specific build.

          Velusamy Krishnan added a comment - Thank you p4karl , I have checked for streams, now it is doing checkout only for specific build.

          Karl Wirth added a comment -

          Hi velkrish 

          Thats great news and thanks for letting us know.

          Karl Wirth added a comment - Hi velkrish   Thats great news and thanks for letting us know.

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

              Created:
              Updated:
              Resolved: