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

A branch build strategy with ignore older/newer

      A nice to have feature for this plugin.
      Branches with same parameters as Tags strategy:
      Ignore branch newer than
      Ignore branch older than

      Thought of this when I changed my Branch Source configuration which caused Jenkins to automatically start an new build of All the projects 200 branches.

          [JENKINS-51918] A branch build strategy with ignore older/newer

          Sverre Moe added a comment -

          It seemed to be my own fault causing Jenkins to rebuild all branches. When changing the configuration from script console I removed the existing branch source configuration and recreated it. That seems to be the reason why Jenkins started to build all branches again.

          However it would still be very beneficial to set an ignore for newer or older branches. In case one adds an old repository to Jenkins and doesn't want any of the branches to start building automatically.

          Also maybe configure not to build automatically when adding a project, but still build automatically when new commits are pushed up and triggered with notifyCommit, but that is maybe not in the scope of this plugin.

          Sverre Moe added a comment - It seemed to be my own fault causing Jenkins to rebuild all branches. When changing the configuration from script console I removed the existing branch source configuration and recreated it. That seems to be the reason why Jenkins started to build all branches again. However it would still be very beneficial to set an ignore for newer or older branches. In case one adds an old repository to Jenkins and doesn't want any of the branches to start building automatically. Also maybe configure not to build automatically when adding a project, but still build automatically when new commits are pushed up and triggered with notifyCommit, but that is maybe not in the scope of this plugin.

          This would be helpful for "stateless" helm based jenkins setup to prevent initial builds of all branches of all multibranch jobs

          Carsten Rohrbach added a comment - This would be helpful for "stateless" helm based jenkins setup to prevent initial builds of all branches of all multibranch jobs

            Unassigned Unassigned
            djviking Sverre Moe
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: