-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
44 lines (32 loc) · 978 Bytes
/
Jenkinsfile
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
43
44
#!groovy
library 'pipeline-libraries@email'
timestamps {
postBuildEmail('[email protected]') {
node {
stage('Checkout') {
deleteDir()
checkout scm
}
stage('Compile') {
sh './gradlew shadowJar'
}
stage('Unit Test') {
try {
sh './gradlew test'
} catch(e) {
throw(e)
} finally {
junit '**/TEST-*.xml'
jacoco()
}
}
stage('OWASP Dependency Check') {
sh './gradlew dependencyCheckAnalyze'
dependencyCheckPublisher canComputeNew: false
}
stage('SonarQube Analysis') {
sh './gradlew -Dsonar.host.url=http://bluemoon-sonarqube.aocws.test sonarqube'
}
}
}
}