forked from anujdevopslearn/SonarQubeCoverageJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
37 lines (36 loc) · 767 Bytes
/
Jenkinsfile
File metadata and controls
37 lines (36 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{
triggers {
githubPush()
}
agent any
stages('CI CD Pipeline'){
stage('Code Checkout'){
steps{
script{
git credentialsId: '0a1544c3-a902-4811-a373-c8ae9f018d9e', url: 'https://github.com/SharanyaJayaram/MavenBuild.git'
}
}
}
stage('Build'){
steps{
script{
sh "mvn clean install -Dmaven.test.skip=true"
}
}
}
stage('Test'){
steps{
script{
sh "mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install -Pcoverage-per-test"
}
}
}
stage('Notification'){
steps{
script{
}
}
}
}
}