forked from akshu20791/DevOpsClassCodes
-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathJenkinsFile100
More file actions
38 lines (34 loc) · 767 Bytes
/
JenkinsFile100
File metadata and controls
38 lines (34 loc) · 767 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
pipeline {
agent any
tools{
maven 'maven'
}
stages {
stage('clone the github repo') {
steps {
git 'https://github.com/NikitasGithub/DevOpsClassCodes.git'
echo 'cloned the repo successfully'
}
}
stage('compile the code') {
steps {
bat 'mvn compile'
}
}
stage('test the code') {
steps {
bat 'mvn test'
}
}
stage('QA the code') {
steps {
bat 'mvn pmd:pmd'
}
}
stage('Package the code') {
steps {
bat 'mvn package'
}
}
}
}