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

Checkbox "Only use stable builds as reference" probably doesnt work

    Details

    • Similar Issues:

      Description

      It is look so, that also in case that this checkbox is unchecked, only stable builds are used as reference build.

      What I need achieve is: If result of current build is so, that there is more warnings that previous build, commiters of code (it is continues builds connected to SVN server) get mail that that they commit code with more warnings.

      I setup plugin so, that "Compute new warnings (based on reference build)" is turned ON and "Status thresholds (New warnings)" have number 1 in "All priorities" - unstable (process is so that PMD plugin turn build to unstable state and Email-Ext plugin send mail when build is unstable).

      Checkbox "Only use stable builds as reference" is unchecked but when builds turn to unstable, plugin use always as reference build last stable build (in opposite that I need him to use always previous build). I see this on build page where it write which build is used as reference.

      I look in code and this is only guess, but in method BuildHistory.getReferenceAction is called getAction(true, useStableBuildAsReference) and this first true parameter (isStatusRelevant) cause that not stable build are not count as reference build.

        Attachments

          Issue Links

            Activity

            Hide
            drulli Ulli Hafner added a comment -

            The checkbox "Only use stable builds as reference" means that only builds should be considered that are stable before my plug-ins run, e.g. have no unit test failures. This has no influence if a build is set to unstable due to new warnings...

            BTW: when you check for new warnings you should use the threshold "0".

            Show
            drulli Ulli Hafner added a comment - The checkbox "Only use stable builds as reference" means that only builds should be considered that are stable before my plug-ins run, e.g. have no unit test failures. This has no influence if a build is set to unstable due to new warnings... BTW: when you check for new warnings you should use the threshold "0".
            Hide
            drulli Ulli Hafner added a comment -

            Please vote for JENKINS-13458 (and attach yourself as watchee)

            Show
            drulli Ulli Hafner added a comment - Please vote for JENKINS-13458 (and attach yourself as watchee)
            Hide
            peto127 Peter Spireng added a comment -

            Thanks for clarification. I will look forward for solving JENKINS-13458

            Show
            peto127 Peter Spireng added a comment - Thanks for clarification. I will look forward for solving JENKINS-13458

              People

              • Assignee:
                drulli Ulli Hafner
                Reporter:
                peto127 Peter Spireng
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: