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

Does multibranch-build-strategy plugin work at all?

XMLWordPrintable

      Hi,

      My impression is that this plugin is non-functional, at least when used with the pollSCM trigger. None of the options for triggering builds only when files in a particular directory are changed, or suppressing builds when files in excluded dirs are changed appear to work. Eg in my job, I've set Branch Sources --> Property strategy --> Build Strategies --> Accept build by included regions strategy --> in the "Trigger builds for included regions" text box, I've typed my/dir/**

      Yet when changes are made outside my/dir/** a build is triggered.

      The regions directory patterns don't seem to be evaluated. My job is triggered and logs show:

      j.scm.impl.SCMTriggerListener#onSCMHeadEvent: Triggering polling of myjob/my-branch
      h.triggers.SCMTrigger$Runner#run: SCM changes detected in myjob >> my-branch. Triggering
      

      If this was working, when I commit the irrelevant file, I would expect to see eg log message:

      c.i.j.p.m.b.IncludeRegionBranchBuildStrategy#shouldRunBuild: No matching any included regions, skipping build
      

      But this is only logged when I configure my job, not at build time. Nor are there any other logs containing "BuildStrategy" at build-time. Nothing except INFO level messages are logged at build time.

      Same occurs if I type "**" in Cancel build by excluded regions strategy --> Don't trigger build for excluded regions, which should avoid triggering ANY builds. Any file change wrongly triggers, when none should.

      Using latest LTS Jenkins (v2.462.1) and latest multibranch-build-strategy plugin (v51.v88f14e2a_4075). Is anyone successfully using this plugin?

      BTW, I've followed a couple of tips in issues about this plugin, such as ignoring builds triggered by indexing using "suppress automatic SCM triggering" in my jobs, and I'm setting a unique ID for each of my jobs. No dice.

      Thanks.

            igalg Igal Gluh
            brendanh Brendan Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: