diff --git a/Jenkinsfile b/Jenkinsfile index e103dba..672e670 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -442,11 +442,11 @@ pipeline { println GetCoverageValue_branch_rate(coverage_report_path) println GetCoverageValue_complexity(coverage_report_path) - full_rate = BigDecimal( (GetCoverageValue_line_rate(coverage_report_path) + GetCoverageValue_branch_rate(coverage_report_path)) / 2 ) + full_rate = new BigDecimal( (GetCoverageValue_line_rate(coverage_report_path) + GetCoverageValue_branch_rate(coverage_report_path)) / 2 ) sz_full_rate =Float.toString(full_rate.setScale(2, RoundingMode.HALF_EVEN)) badge_coverage.setStatus(sz_full_rate) - complexity = BigDecimal( GetCoverageValue_complexity(coverage_report_path)) + complexity = new BigDecimal( GetCoverageValue_complexity(coverage_report_path)) sz_complexity =Float.toString(complexity.setScale(2, RoundingMode.HALF_EVEN)) badge_complexity.setStatus(sz_complexity) }