Fix JavaDoc issues
Use a script block since we define variables for the issue scanning results
@@ -68,12 +68,14 @@ pipeline {
' -U -Dmaven.test.failure.ignore=true clean verify'
}
+ script {
def mavenConsoleIssues = scanForIssues tool: mavenConsole()
def javaIssues = scanForIssues tool: java()
def javaDocIssues = scanForIssues tool: javaDoc()
publishIssues issues: [mavenConsoleIssues, javaIssues, javaDocIssues]
}
}
+ }
// Perform a SNAPSHOT build of a main branch. This stage is typically executed after a
// merge request has been merged. On success, it deploys the generated artifacts to the
@@ -88,6 +90,7 @@ pipeline {
' -U -Dmaven.test.failure.ignore=true clean deploy'
}
+ script {
def mavenConsoleIssues = scanForIssues tool: mavenConsole()
def javaIssues = scanForIssues tool: java()
def javaDocIssues = scanForIssues tool: javaDoc()
@@ -96,3 +99,4 @@ pipeline {
}
}
}
+}
