Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "GerritWarningQualityGate"

Line 39: Line 39:
 
b) I am investigating if quality gate could be tuned in better.
 
b) I am investigating if quality gate could be tuned in better.
  
[[File://wiki.eclipse.org/File:GerritWarningQualityGate.jpg]]
+
[[File:GerritWarningQualityGate.jpg|600px]]

Revision as of 06:41, 16 July 2021

STEPS TO CREATE WARNING QUALITY GATE

1) Go to the relevant repository configure page for example https://ci.eclipse.org/pde/job/eclipse.pde.build-Gerrit/configure ( You must be logged in) 2) In the general section, check Restrict where this project can be run and put centos-7 in Label Expression

Reason : (See https://bugs.eclipse.org/bugs/show_bug.cgi?id=574232#c7)

3) Click Add post-build action button and select Compiler warnings and static analysis results

4) In static analysis tool ->Tool , select Eclipse ECJ in the dropdown

5) Click on Advanced below

6) Check Aggregate results of all tools into a single result and Enable recording for failed builds

7) Scroll down and click on Add Quality Gate

8) Let threshold be 1 and Select Unstable or Failed ( depending on what you prefer if warning comes)

9) Click on Save and Apply

10) Retrigger any of the previous gerrit in this repo

11) You will see that the build has failed or is unstable ( based on step 8).

12) Check ECJ warnings - Example -> Eclipse ECJ: 737 warnings

13) Go back to configure page and Set the threshold to (warning number in step 12 + 1)

14) Retrigger again, You will see quality gate success

After this, any new warning in this repo will result in Unstable or Failed gerrit ( based on 8)


Few issues ( working on)

a) I don't see 1:1 mapping from IDE warning to ECJ warning here ( investigating)

b) I am investigating if quality gate could be tuned in better.

GerritWarningQualityGate.jpg

Back to the top