forked from industryfour/WebApp
-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathNewJenkinsfile
More file actions
23 lines (23 loc) · 805 Bytes
/
NewJenkinsfile
File metadata and controls
23 lines (23 loc) · 805 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
pipeline {
agent none
tools {
maven 'maven'
}
stages {
stage("build & SonarQube analysis") {
agent any
steps {
withSonarQubeEnv('sonar') {
sh 'mvn clean package sonar:sonar -Dsonar.host.url=http://3.1.202.152:9000/ -Dsonar.login=ff177383dda7da09c6364187a7d1b057c7fe64b7 -Dsonar.sources=. -Dsonar.tests=. -Dsonar.test.inclusions=**/test/java/servlet/createpage_junit.java -Dsonar.exclusions=**/test/java/servlet/createpage_junit.java'
}
}
}
stage("Quality Gate") {
steps {
timeout(time: 1, unit: 'HOURS') {
waitForQualityGate abortPipeline: true
}
}
}
}
}