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

Use current build as reference build

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • warnings-ng-plugin
    • None

      When running the "record compiler warnings and static analysis results" step I want to haave a quality gate using the results from the current build.

      For this I configure the discover reference step as:

      The Quality gate is configured as:

      However the current build (#29 in the output below) is not used for determining the quality gate as can be seen in the Console Output, here the previous data #28 is used:

      *00:04:12.458* [PC-Lint Tool] Obtaining reference build from reference recorder*00:04:12.458* [PC-Lint Tool] -> Found 'testen » testlint_2.2 #29'{*}00:04:12.458{*} [PC-Lint Tool] Reference build 'testen » testlint_2.2 #29' does not contain a result action, analyzing previous builds*00:04:12.458* [PC-Lint Tool] Quality gate successful for reference build 'testen » testlint_2.2 #28', using this build as reference*00:04:12.458* [PC-Lint Tool] Using reference build 'testen/testlint_2.2 #28' to compute new, fixed, and outstanding issues*00:04:12.458* [PC-Lint Tool] Issues delta (vs. reference build): outstanding: 0, new: 0, fixed: 0*00:04:12.458* [PC-Lint Tool] Skip detection of issues in modified code*00:04:12.458* [PC-Lint Tool] Evaluating quality gates*00:04:12.458* [PC-Lint Tool] -> All quality gates have been passed*00:04:12.458* [PC-Lint Tool] -> Details for each quality gate:{*}00:04:12.458{*} [PC-Lint Tool] - [Total (any severity)]: ≪Success≫ - (Actual value: 0, Quality gate: 1.00){*}00:04:12.458{*} [PC-Lint Tool] Health report is disabled - skipping*00:04:12.458* [PC-Lint Tool] Created analysis result for 0 issues (found 0 new issues, fixed 0 issues){*}00:04:12.458{*} [PC-Lint Tool] Attaching ResultAction with ID 'pclint' to build 'testen/testlint_2.2 #29'.
      

      Any hint on using current build data for calculating the Quality Gate output?

            drulli Ulli Hafner
            han_geerligs Han Geerligs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: