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

A branch build strategy with ignore older/newer

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          djviking 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.

          Show
          djviking 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.
          Hide
          cmj 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

          Show
          cmj 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

            People

            • Assignee:
              Unassigned
              Reporter:
              djviking Sverre Moe
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: