forked from NikitasGithub/DevOpsClassCodes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkins-File
More file actions
35 lines (33 loc) · 683 Bytes
/
Jenkins-File
File metadata and controls
35 lines (33 loc) · 683 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
pipeline {
agent any
tools{
maven 'maven'
}
stages{
stage("Checkout from git hub repo"){
steps{
git 'https://github.com/NikitasGithub/DevOpsClassCodes.git'
}
}
stage("code compile"){
steps{
bat "mvn compile"
}
}
stage("code test"){
steps{
bat "mvn test"
}
}
stage("code quality test"){
steps{
bat "mvn pmd:pmd"
}
}
stage("code package"){
steps{
bat "mvn package"
}
}
}
}