Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Just code layout changes
Browse files Browse the repository at this point in the history
  • Loading branch information
prusse-martin committed Jan 29, 2024
1 parent 91366ad commit b0bbc48
Showing 1 changed file with 18 additions and 25 deletions.
43 changes: 18 additions & 25 deletions src/jobs_done10/generators/jenkins.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,31 +472,24 @@ def SetCoverage(self, options):
# and may not be the same as the workspace root. Cobertura must be configured to generate
# XML reports for this plugin to function.
cobertura_publisher["coberturaReportFile"] = report_pattern
cobertura_publisher["onlyStable"] = (
"false" # Include only stable builds, i.e. exclude unstable and failed ones.
)
cobertura_publisher["failUnhealthy"] = (
"true" # fail builds if No coverage reports are found.
)
cobertura_publisher["failUnstable"] = (
"true" # Unhealthy projects will be failed.
)
cobertura_publisher["autoUpdateHealth"] = (
"false" # Unstable projects will be failed.
)
cobertura_publisher["autoUpdateStability"] = (
"false" # Auto update threshold for health on successful build.
)
cobertura_publisher["autoUpdateStability"] = (
"false" # Auto update threshold for stability on successful build.
)
cobertura_publisher["zoomCoverageChart"] = (
"false" # Zoom the coverage chart and crop area below the minimum and above the maximum coverage of the past reports.
)
cobertura_publisher["maxNumberOfBuilds"] = (
"0" # Only graph the most recent N builds in the coverage chart, 0 disables the limit.
)
cobertura_publisher["sourceEncoding"] = "UTF_8" # Encoding when showing files.
# Include only stable builds, i.e. exclude unstable and failed ones.
cobertura_publisher["onlyStable"] = "false"
# fail builds if No coverage reports are found.
cobertura_publisher["failUnhealthy"] = "true"
# Unhealthy projects will be failed.
cobertura_publisher["failUnstable"] = "true"
# Unstable projects will be failed.
cobertura_publisher["autoUpdateHealth"] = "false"
# Auto update threshold for health on successful build.
cobertura_publisher["autoUpdateStability"] = "false"
# Auto update threshold for stability on successful build.
cobertura_publisher["autoUpdateStability"] = "false"
# Zoom the coverage chart and crop area below the minimum and above the maximum coverage of the past reports.
cobertura_publisher["zoomCoverageChart"] = "false"
# Only graph the most recent N builds in the coverage chart, 0 disables the limit.
cobertura_publisher["maxNumberOfBuilds"] = "0"
# Encoding when showing files.
cobertura_publisher["sourceEncoding"] = "UTF_8"

def FormatMetricValue(metric):
# It seems to use more places for precision reasons
Expand Down

0 comments on commit b0bbc48

Please sign in to comment.