You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2021/01/13 09:40:34 UTC
[camel] 01/01: Use warnings-ng plugin to collect issues
This is an automated email from the ASF dual-hosted git repository.
zregvart pushed a commit to branch pr/jenkins-warnings-ng
in repository https://gitbox.apache.org/repos/asf/camel.git
commit 11f013ca996ca3167e260f66e1f64200ce89a0c9
Author: Zoran Regvart <zr...@apache.org>
AuthorDate: Wed Jan 13 10:39:49 2021 +0100
Use warnings-ng plugin to collect issues
Warnings-ng plugin allows for better collection and presentation of
issues.
---
Jenkinsfile | 13 ++++++++++++-
Jenkinsfile.deploy | 6 +++++-
Jenkinsfile.jdk11 | 13 ++++++++++++-
Jenkinsfile.jdk14 | 13 ++++++++++++-
Jenkinsfile.jdk16 | 13 ++++++++++++-
5 files changed, 53 insertions(+), 5 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 641735f..c544638 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -65,6 +65,11 @@ pipeline {
steps {
sh "./mvnw $MAVEN_PARAMS -Pdeploy -Dmaven.test.skip.exec=true clean deploy"
}
+ post {
+ always {
+ recordIssues enabledForFailure: true, tools: [mavenConsole(), java(), javaDoc()]
+ }
+ }
}
stage('Website update') {
@@ -83,6 +88,12 @@ pipeline {
sh "./mvnw $MAVEN_PARAMS -pl :camel-buildtools install"
sh "./mvnw $MAVEN_PARAMS -Psourcecheck -Dcheckstyle.failOnViolation=false checkstyle:check"
}
+ post {
+ always {
+ recordIssues enabledForFailure: true, tools: [mavenConsole(), java(), javaDoc()]
+ recordIssues enabledForFailure: true, tool: checkStyle()
+ }
+ }
}
stage('Test') {
@@ -93,6 +104,7 @@ pipeline {
always {
junit allowEmptyResults: true, testResults: '**/target/surefire-reports/*.xml'
junit allowEmptyResults: true, testResults: '**/target/failsafe-reports/*.xml'
+ recordIssues enabledForFailure: true, tools: [mavenConsole(), java(), javaDoc()]
}
}
}
@@ -109,4 +121,3 @@ pipeline {
}
}
}
-
diff --git a/Jenkinsfile.deploy b/Jenkinsfile.deploy
index 4153a50..2858163 100644
--- a/Jenkinsfile.deploy
+++ b/Jenkinsfile.deploy
@@ -65,6 +65,11 @@ pipeline {
steps {
sh "./mvnw $MAVEN_PARAMS -Pdeploy -Dmaven.test.skip.exec=true clean deploy"
}
+ post {
+ always {
+ recordIssues enabledForFailure: true, tools: [mavenConsole(), java(), javaDoc()]
+ }
+ }
}
}
@@ -79,4 +84,3 @@ pipeline {
}
}
}
-
diff --git a/Jenkinsfile.jdk11 b/Jenkinsfile.jdk11
index 87c7391..9d4ea27 100644
--- a/Jenkinsfile.jdk11
+++ b/Jenkinsfile.jdk11
@@ -65,12 +65,23 @@ pipeline {
steps {
sh "./mvnw $MAVEN_PARAMS -Dmaven.test.skip.exec=true clean install"
}
+ post {
+ always {
+ recordIssues enabledForFailure: true, tools: [mavenConsole(), java(), javaDoc()]
+ }
+ }
}
stage('Checks') {
steps {
sh "./mvnw $MAVEN_PARAMS -Psourcecheck -Dcheckstyle.failOnViolation=false checkstyle:check"
}
+ post {
+ always {
+ recordIssues enabledForFailure: true, tools: [mavenConsole(), java(), javaDoc()]
+ recordIssues enabledForFailure: true, tool: checkStyle()
+ }
+ }
}
stage('Test') {
@@ -81,6 +92,7 @@ pipeline {
always {
junit allowEmptyResults: true, testResults: '**/target/surefire-reports/*.xml'
junit allowEmptyResults: true, testResults: '**/target/failsafe-reports/*.xml'
+ recordIssues enabledForFailure: true, tools: [mavenConsole(), java(), javaDoc()]
}
}
}
@@ -97,4 +109,3 @@ pipeline {
}
}
}
-
diff --git a/Jenkinsfile.jdk14 b/Jenkinsfile.jdk14
index ad8f8a9..936fbf2 100644
--- a/Jenkinsfile.jdk14
+++ b/Jenkinsfile.jdk14
@@ -65,12 +65,23 @@ pipeline {
steps {
sh "./mvnw $MAVEN_PARAMS -Dmaven.test.skip.exec=true clean install"
}
+ post {
+ always {
+ recordIssues enabledForFailure: true, tools: [mavenConsole(), java(), javaDoc()]
+ }
+ }
}
stage('Checks') {
steps {
sh "./mvnw $MAVEN_PARAMS -Psourcecheck -Dcheckstyle.failOnViolation=false checkstyle:check"
}
+ post {
+ always {
+ recordIssues enabledForFailure: true, tools: [mavenConsole(), java(), javaDoc()]
+ recordIssues enabledForFailure: true, tool: checkStyle()
+ }
+ }
}
stage('Test') {
@@ -81,6 +92,7 @@ pipeline {
always {
junit allowEmptyResults: true, testResults: '**/target/surefire-reports/*.xml'
junit allowEmptyResults: true, testResults: '**/target/failsafe-reports/*.xml'
+ recordIssues enabledForFailure: true, tools: [mavenConsole(), java(), javaDoc()]
}
}
}
@@ -97,4 +109,3 @@ pipeline {
}
}
}
-
diff --git a/Jenkinsfile.jdk16 b/Jenkinsfile.jdk16
index a21b84c..51605ef 100644
--- a/Jenkinsfile.jdk16
+++ b/Jenkinsfile.jdk16
@@ -65,12 +65,23 @@ pipeline {
steps {
sh "./mvnw $MAVEN_PARAMS -Darchetype.test.skip -Dmaven.test.skip.exec=true clean install"
}
+ post {
+ always {
+ recordIssues enabledForFailure: true, tools: [mavenConsole(), java(), javaDoc()]
+ }
+ }
}
stage('Checks') {
steps {
sh "./mvnw $MAVEN_PARAMS -Darchetype.test.skip -Psourcecheck -Dcheckstyle.failOnViolation=false checkstyle:check"
}
+ post {
+ always {
+ recordIssues enabledForFailure: true, tools: [mavenConsole(), java(), javaDoc()]
+ recordIssues enabledForFailure: true, tool: checkStyle()
+ }
+ }
}
stage('Test') {
@@ -81,6 +92,7 @@ pipeline {
always {
junit allowEmptyResults: true, testResults: '**/target/surefire-reports/*.xml'
junit allowEmptyResults: true, testResults: '**/target/failsafe-reports/*.xml'
+ recordIssues enabledForFailure: true, tools: [mavenConsole(), java(), javaDoc()]
}
}
}
@@ -97,4 +109,3 @@ pipeline {
}
}
}
-