• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • 2.440.1

      The Jenkins version includes the global discard jobs function, but it doesn't seem possible to override the function as shown here:

      https://plugins.jenkins.io/build-discarder/

      This problem has already been reported here:

      Local build discard settings is not overriding global build discard settings(Default) - Using Jenkins - Jenkins

      What seems strange is that this plugin doesn't seem to be necessary because Jenkins natively has the Global Build Discarders function.

      Manage Jenkins >> Configure System >> Global Build Discarders.

      Has anyone already encountered this problem and is it a bug? For information, adding the plugin doesn't change anything.

          [JENKINS-73045] Global build discarder issue

          Bernard Jaulin created issue -
          Bernard Jaulin made changes -
          Description Original: The Jenkins version includes the global discard jobs function, but it doesn't seem possible to override the function as shown here:

          [Build Discarder | Jenkins plugin|https://plugins.jenkins.io/build-discarder/]

          This problem has already been reported here:

          [Local build discard settings is not overriding global build discard settings(Default) - Using Jenkins - Jenkins|https://community.jenkins.io/t/local-build-discard-settings-is-not-overriding-global-build-discard-settings-default/5947]

          What seems strange is that this plugin doesn't seem to be necessary because Jenkins natively has the *Global Build Discarders* function.

          Manage Jenkins >> Configure System >> Global Build Discarders.

          Has anyone already encountered this problem and is it a bug? For information, adding the plugin doesn't change anything.
          New: The Jenkins version includes the global discard jobs function, but it doesn't seem possible to override the function as shown here:

          https://plugins.jenkins.io/build-discarder/

          This problem has already been reported here:

          [Local build discard settings is not overriding global build discard settings(Default) - Using Jenkins - Jenkins|https://community.jenkins.io/t/local-build-discard-settings-is-not-overriding-global-build-discard-settings-default/5947]

          What seems strange is that this plugin doesn't seem to be necessary because Jenkins natively has the *Global Build Discarders* function.

          Manage Jenkins >> Configure System >> Global Build Discarders.

          Has anyone already encountered this problem and is it a bug? For information, adding the plugin doesn't change anything.

          Markus Winter added a comment -

          The plugin is necessary as it runs the discarder only for those jobs that don't have a discarder configured.

          Core brings 2 build discarders strategies:

          • Project Build Discarder: apply the discarder configured in a job
          • Specific Build Discarder: runs the build discarder configured without looking what jobs have configured

          So the specific build discarder only makes sense when you don't want to configure discarders on jobs. And then you shouldn't configure the discarder from the plugin.

          Basically the plugin provides the solution for the problem in the linked community topic.

          And of courses you need to configure the plugin, just installing it is not enough

           

          Markus Winter added a comment - The plugin is necessary as it runs the discarder only for those jobs that don't have a discarder configured. Core brings 2 build discarders strategies: Project Build Discarder: apply the discarder configured in a job Specific Build Discarder: runs the build discarder configured without looking what jobs have configured So the specific build discarder only makes sense when you don't want to configure discarders on jobs. And then you shouldn't configure the discarder from the plugin. Basically the plugin provides the solution for the problem in the linked community topic. And of courses you need to configure the plugin, just installing it is not enough  

            Unassigned Unassigned
            bjaulin Bernard Jaulin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: