Skip to content

Commit cbf98d0

Browse files
Update Jenkinsfile
1 parent 19110a3 commit cbf98d0

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

Jenkinsfile

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,36 @@ node {
1919
//add stage sonar
2020
sh 'mvn sonar:sonar'
2121
}
22-
stage('mail'){
22+
23+
stage('Checkstyle') {
24+
sh 'mvn checkstyle:checkstyle'
25+
}
26+
27+
stage('PMD') {
28+
sh 'mvn pmd:check'
29+
}
30+
/* stage('mail'){
2331
2432
mail body: 'project build successful',
2533
2634
replyTo: '[email protected]',
2735
subject: 'project build successful',
2836
29-
}
37+
}*/
38+
39+
3040

3141
}
3242
catch (err) {
3343

3444
currentBuild.result = "FAILURE"
3545

36-
mail body: "project build error is here: ${env.BUILD_URL}" ,
46+
/* mail body: "project build error is here: ${env.BUILD_URL}" ,
3747
3848
replyTo: '[email protected]',
3949
subject: 'project build failed',
4050
41-
51+
*/
4252
throw err
4353
}
4454
}

0 commit comments

Comments
 (0)