From ddadebb7e93e60fcc5ba56a7ee82237d815d8a2e Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Sun, 21 May 2023 12:22:46 +0200 Subject: [PATCH] Address javadoc warning and setup quality gates (#8024) --- Jenkinsfile | 11 ++++++++++- .../java/jenkins/model/GlobalCloudConfiguration.java | 1 - 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 63f267a290..ae007c52ee 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -127,12 +127,21 @@ axes.values().combinations { echo "Recording static analysis results for '${platform.capitalize()}'" recordIssues( enabledForFailure: true, - tools: [java(), javaDoc()], + tools: [java()], filters: [excludeFile('.*Assert.java')], sourceCodeEncoding: 'UTF-8', skipBlames: true, trendChartType: 'TOOLS_ONLY' ) + recordIssues( + enabledForFailure: true, + tools: [javaDoc()], + filters: [excludeFile('.*Assert.java')], + sourceCodeEncoding: 'UTF-8', + skipBlames: true, + trendChartType: 'TOOLS_ONLY', + qualityGates: [[threshold: 1, type: 'NEW', unstable: true]] + ) recordIssues([tool: spotBugs(pattern: '**/target/spotbugsXml.xml'), sourceCodeEncoding: 'UTF-8', skipBlames: true, diff --git a/core/src/main/java/jenkins/model/GlobalCloudConfiguration.java b/core/src/main/java/jenkins/model/GlobalCloudConfiguration.java index 8b25c8fc2b..022474b496 100644 --- a/core/src/main/java/jenkins/model/GlobalCloudConfiguration.java +++ b/core/src/main/java/jenkins/model/GlobalCloudConfiguration.java @@ -11,7 +11,6 @@ import org.kohsuke.accmod.restrictions.NoExternalUse; /** * Redirects from /configureClouds to /cloud/. * Previously was the form for clouds. - *

* @deprecated Replaced by {@link jenkins.agents.CloudsLink} and {@link jenkins.agents.CloudSet}. */ @Extension