forked from akshu20791/DevOpsClassCodes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile2
34 lines (33 loc) · 855 Bytes
/
Jenkinsfile2
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
pipeline{
agent any
stages{
stage('checkout the code from github'){
steps{
git url: 'https://github.com/akshu20791/DevOpsClassCodes/'
echo 'github url checkout'
}
}
stage('codecompile with akshat'){
steps{
echo 'starting compiling'
sh 'mvn compile'
}
}
stage('codetesting with akshat'){
steps{
sh 'mvn test'
}
}
stage('qa with akshat'){
steps{
sh 'mvn checkstyle:checkstyle'
recordIssues sourceCodeRetention: 'LAST_BUILD', tools: [checkStyle()]
}
}
stage('package with akshat'){
steps{
sh 'mvn package'
}
}
}
}