Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/1.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
ao-apps committed Feb 27, 2025
2 parents 813d03f + 379bdc8 commit 468b01b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 22 deletions.
25 changes: 14 additions & 11 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -1140,21 +1140,24 @@ void analysisSteps() {
script {
try {
timeout(time: 15, unit: 'MINUTES') {
tools = []
tools << checkStyle(pattern: 'target/checkstyle-result.xml', skipSymbolicLinks: true)
tools << java()
tools << javaDoc()
// Detect JUnit results from presence of surefire-reports directory
if (fileExists('target/surefire-reports')) {
tools << junitParser(pattern: 'target*/surefire-reports/TEST-*.xml', skipSymbolicLinks: true)
}
tools << mavenConsole()
// php()
// sonarQube(), // TODO: sonar-report.json not found
tools << spotBugs(pattern: 'target/spotbugsXml.xml', skipSymbolicLinks: true)
// taskScanner()
recordIssues(
aggregatingResults: true,
skipPublishingChecks: true,
sourceCodeEncoding: 'UTF-8',
tools: [
checkStyle(pattern: 'target/checkstyle-result.xml', skipSymbolicLinks: true),
java(),
javaDoc(),
// junitParser(),
mavenConsole(),
// php()
// sonarQube(), // TODO: sonar-report.json not found
spotBugs(pattern: 'target/spotbugsXml.xml', skipSymbolicLinks: true)
// taskScanner()
]
tools: tools
)
}
} catch (org.jenkinsci.plugins.workflow.steps.FlowInterruptedException e) {
Expand Down
25 changes: 14 additions & 11 deletions book/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -1135,21 +1135,24 @@ void analysisSteps() {
script {
try {
timeout(time: 15, unit: 'MINUTES') {
tools = []
tools << checkStyle(pattern: 'target/checkstyle-result.xml', skipSymbolicLinks: true)
tools << java()
tools << javaDoc()
// Detect JUnit results from presence of surefire-reports directory
if (fileExists('target/surefire-reports')) {
tools << junitParser(pattern: 'target*/surefire-reports/TEST-*.xml', skipSymbolicLinks: true)
}
tools << mavenConsole()
// php()
// sonarQube(), // TODO: sonar-report.json not found
tools << spotBugs(pattern: 'target/spotbugsXml.xml', skipSymbolicLinks: true)
// taskScanner()
recordIssues(
aggregatingResults: true,
skipPublishingChecks: true,
sourceCodeEncoding: 'UTF-8',
tools: [
checkStyle(pattern: 'target/checkstyle-result.xml', skipSymbolicLinks: true),
java(),
javaDoc(),
// junitParser(),
mavenConsole(),
// php()
// sonarQube(), // TODO: sonar-report.json not found
spotBugs(pattern: 'target/spotbugsXml.xml', skipSymbolicLinks: true)
// taskScanner()
]
tools: tools
)
}
} catch (org.jenkinsci.plugins.workflow.steps.FlowInterruptedException e) {
Expand Down

0 comments on commit 468b01b

Please sign in to comment.