Skip to content

Commit 0b514cf

Browse files
authored
make sure the analysis always runs, even on failed builds (#235)
1 parent 6ced6e2 commit 0b514cf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Jenkinsfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ pipeline {
4040
}
4141
}
4242
}
43-
stage('Analysis') {
44-
steps {
45-
recordIssues(
46-
enabledForFailure: true, aggregatingResults: true,
47-
tools: [java(), checkStyle(reportEncoding: 'UTF-8'), spotBugs()])
48-
}
43+
}
44+
post('Analysis') {
45+
always {
46+
recordIssues(
47+
enabledForFailure: true, aggregatingResults: true,
48+
tools: [java(), checkStyle(reportEncoding: 'UTF-8'), spotBugs()])
4949
}
5050
}
5151
}

0 commit comments

Comments
 (0)