• 5.0.0-beta2

      While its nice to have an option to calculate reference build it does not always work
      or its not a policy of the company. There should be an option to explicitly set a
      reference build #, so all new warnings/errors calculated from that reference point on.
      Obviously this build should be locked but it will be an admin issue.

          [JENKINS-31812] Set reference build explicitly

          Pete W added a comment -

          Is there any workaround for this? Like is there any command I can run in the Jenkins script console to reset this?

          Pete W added a comment - Is there any workaround for this? Like is there any command I can run in the Jenkins script console to reset this?

          Ulli Hafner added a comment -

          I'm trying to consolidate the requirements for the static analysis suite in pipeline jobs in a wiki page. Can you please read it carefully and comment or change it accordingly?

          Ulli Hafner added a comment - I'm trying to consolidate the requirements for the static analysis suite in pipeline jobs in a wiki page . Can you please read it carefully and comment or change it accordingly?

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/main/java/io/jenkins/plugins/analysis/core/JenkinsFacade.java
          src/main/java/io/jenkins/plugins/analysis/core/graphs/AnnotationsByUserGraph.java
          src/main/java/io/jenkins/plugins/analysis/core/history/BuildHistory.java
          src/main/java/io/jenkins/plugins/analysis/core/history/OtherJobReferenceFinder.java
          src/main/java/io/jenkins/plugins/analysis/core/history/ReferenceFinder.java
          src/main/java/io/jenkins/plugins/analysis/core/history/ReferenceProvider.java
          src/main/java/io/jenkins/plugins/analysis/core/history/ResultHistory.java
          src/main/java/io/jenkins/plugins/analysis/core/model/AnalysisResult.java
          src/main/java/io/jenkins/plugins/analysis/core/model/StaticAnalysisLabelProvider.java
          src/main/java/io/jenkins/plugins/analysis/core/model/Summary.java
          src/main/java/io/jenkins/plugins/analysis/core/steps/AnalysisExecution.java
          src/main/java/io/jenkins/plugins/analysis/core/steps/PublishIssuesStep.java
          src/main/java/io/jenkins/plugins/analysis/core/steps/ScanForIssuesStep.java
          src/main/resources/io/jenkins/plugins/analysis/core/model/Messages.properties
          src/main/resources/io/jenkins/plugins/analysis/core/views/InfoErrorDetail/index.jelly
          src/main/resources/io/jenkins/plugins/analysis/core/views/IssuesDetail/index.jelly
          src/test/java/io/jenkins/plugins/analysis/core/history/OtherJobReferenceFinderTest.java
          src/test/java/io/jenkins/plugins/analysis/core/model/SummaryTest.java
          http://jenkins-ci.org/commit/analysis-core-plugin/3429aead0352f32c2b2c2114bd868e2a8a110dcf
          Log:
          JENKINS-13056JENKINS-31812 Added option to specify a reference job.

          The reference results will now be obtained either
          a) from the current job
          b) from a specified reference job (given by the name)

          The reference job will be selected using the properties:

          • ignoreAnalysisResult: ignores the result of the previous analysis run
          • overallResultMustBeSuccess: picks only builds with overall SUCCESS

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/io/jenkins/plugins/analysis/core/JenkinsFacade.java src/main/java/io/jenkins/plugins/analysis/core/graphs/AnnotationsByUserGraph.java src/main/java/io/jenkins/plugins/analysis/core/history/BuildHistory.java src/main/java/io/jenkins/plugins/analysis/core/history/OtherJobReferenceFinder.java src/main/java/io/jenkins/plugins/analysis/core/history/ReferenceFinder.java src/main/java/io/jenkins/plugins/analysis/core/history/ReferenceProvider.java src/main/java/io/jenkins/plugins/analysis/core/history/ResultHistory.java src/main/java/io/jenkins/plugins/analysis/core/model/AnalysisResult.java src/main/java/io/jenkins/plugins/analysis/core/model/StaticAnalysisLabelProvider.java src/main/java/io/jenkins/plugins/analysis/core/model/Summary.java src/main/java/io/jenkins/plugins/analysis/core/steps/AnalysisExecution.java src/main/java/io/jenkins/plugins/analysis/core/steps/PublishIssuesStep.java src/main/java/io/jenkins/plugins/analysis/core/steps/ScanForIssuesStep.java src/main/resources/io/jenkins/plugins/analysis/core/model/Messages.properties src/main/resources/io/jenkins/plugins/analysis/core/views/InfoErrorDetail/index.jelly src/main/resources/io/jenkins/plugins/analysis/core/views/IssuesDetail/index.jelly src/test/java/io/jenkins/plugins/analysis/core/history/OtherJobReferenceFinderTest.java src/test/java/io/jenkins/plugins/analysis/core/model/SummaryTest.java http://jenkins-ci.org/commit/analysis-core-plugin/3429aead0352f32c2b2c2114bd868e2a8a110dcf Log: JENKINS-13056 JENKINS-31812 Added option to specify a reference job. The reference results will now be obtained either a) from the current job b) from a specified reference job (given by the name) The reference job will be selected using the properties: ignoreAnalysisResult: ignores the result of the previous analysis run overallResultMustBeSuccess: picks only builds with overall SUCCESS

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/test/java/io/jenkins/plugins/analysis/warnings/PipelineITest.java
          src/test/java/io/jenkins/plugins/analysis/warnings/StepsITest.java
          src/test/resources/io/jenkins/plugins/analysis/warnings/java-start.txt
          http://jenkins-ci.org/commit/warnings-plugin/3c64ac6c68b433e3f3b4e960e02a99c414223b31
          Log:
          JENKINS-13056JENKINS-31812 Added option to specify a reference job.

          The reference results will now be obtained either
          a) from the current job
          b) from a specified reference job (given by the name)

          The reference job will be selected using the properties:

          • ignoreAnalysisResult: ignores the result of the previous analysis run
          • overallResultMustBeSuccess: picks only builds with overall SUCCESS

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/test/java/io/jenkins/plugins/analysis/warnings/PipelineITest.java src/test/java/io/jenkins/plugins/analysis/warnings/StepsITest.java src/test/resources/io/jenkins/plugins/analysis/warnings/java-start.txt http://jenkins-ci.org/commit/warnings-plugin/3c64ac6c68b433e3f3b4e960e02a99c414223b31 Log: JENKINS-13056 JENKINS-31812 Added option to specify a reference job. The reference results will now be obtained either a) from the current job b) from a specified reference job (given by the name) The reference job will be selected using the properties: ignoreAnalysisResult: ignores the result of the previous analysis run overallResultMustBeSuccess: picks only builds with overall SUCCESS

          Ulli Hafner added a comment -

          Released in 5.0.0-beta2.

          Ulli Hafner added a comment - Released in 5.0.0-beta2.

            drulli Ulli Hafner
            elaskavaia Elena Laskavaia
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: