@@ -14,27 +14,17 @@ node {
1414 stage("Checkstyle") {
1515 if (isUnix()) {
1616 sh "./mvnw checkstyle:checkstyle"
17-
18- step([$class: 'CheckStylePublisher',
19- canRunOnFailed: true,
20- defaultEncoding: '',
21- healthy: '100',
22- pattern: '**/target/checkstyle-result.xml',
23- unHealthy: '90',
24- useStableBuildAsReference: true
25- ])
2617 } else {
2718 bat "./mvnw.cmd checkstyle:checkstyle"
28-
29- step([$class: 'CheckStylePublisher',
19+ }
20+ step([$class: 'CheckStylePublisher',
3021 canRunOnFailed: true,
3122 defaultEncoding: '',
3223 healthy: '100',
33- pattern: '**\ target\ checkstyle-result.xml',
24+ pattern: '**/ target/ checkstyle-result.xml',
3425 unHealthy: '90',
3526 useStableBuildAsReference: true
3627 ])
37- }
3828 }
3929 }
4030 }
@@ -44,32 +34,27 @@ node {
4434 stage("Runing unit tests") {
4535 if (isUnix()) {
4636 sh "./mvnw test -Punit"
47-
48- step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*UnitTest.xml'])
4937 } else {
5038 bat "./mvnw.cmd test -Punit"
51-
52- step([$class: 'JUnitResultArchiver', testResults: '**\target\surefire-reports\TEST-*UnitTest.xml'])
5339 }
40+ step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*UnitTest.xml'])
41+
5442 }
5543 }, 'Integration tests': {
5644 stage("Runing integration tests") {
5745 if (isUnix()) {
5846 sh "./mvnw test -Pintegration"
59-
60- step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*IntegrationTest.xml'])
6147 } else {
6248 bat "./mvnw.cmd test -Pintegration"
63-
64- step([$class: 'JUnitResultArchiver', testResults: '**\target\surefire-reports\TEST-*IntegrationTest.xml'])
6549 }
50+ step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*IntegrationTest.xml'])
6651 }
6752 }, 'Deployment': {
6853 stage("Staging") {
6954 if (isUnix()) {
7055 sh "pid=\$(lsof -i:8989 -t); kill -TERM \$pid || kill -KILL \$pid"
7156 } else {
72- bat "FOR /F ' tokens=5 delims= ' %%P IN (' netstat -ano ^ | findstr :8989' ) DO TaskKill.exe /PID %%P "
57+ bat "FOR /F \" tokens=5 delims= \" %%G IN (\" netstat -a | findstr :8989\" ) DO TaskKill.exe /PID %%G /fi \"memusage gt 0\" "
7358 }
7459
7560 withEnv(['JENKINS_NODE_COOKIE=dontkill']) {
0 commit comments