-
Notifications
You must be signed in to change notification settings - Fork 925
Expand file tree
/
Copy pathParallel-Stages
More file actions
42 lines (39 loc) · 896 Bytes
/
Parallel-Stages
File metadata and controls
42 lines (39 loc) · 896 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
pipeline{
tools{
maven 'mymaven'
}
agent any
stages{
stage('Checkout code')
{
steps{
git 'https://github.com/Sonal0409/DevOpsCodeDemo.git'
}
}
stage ('Parallel Execution') {
parallel{
stage('Code Review')
{
steps{
sh 'mvn pmd:pmd'
}
post{
success{
recordIssues sourceCodeRetention: 'LAST_BUILD', tools: [pmdParser(pattern: '**/pmd.xml')]
}
}
}
stage('Test Code'){
steps{
sh 'mvn test'
}
post{
success{
junit 'target/surefire-reports/*.xml'
}
}
}
}
}
}
}