forked from ravdy/boxfuse-sample-java-war-hello
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJenkinsfile
More file actions
26 lines (25 loc) · 704 Bytes
/
Jenkinsfile
File metadata and controls
26 lines (25 loc) · 704 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
pipeline{
agent any
stages{
stage('GetCode'){
steps{
git 'https://github.com/devisyam/boxfuse-sample-java-war-hello.git'
}
}
stage('Build'){
steps{
sh 'mvn clean package'
}
}
stage('SonarQube analysis') {
// def scannerHome = tool 'SonarScanner 4.0';
steps{
withSonarQubeEnv('sonar') {
// If you have configured more than one global server connection, you can specify its name
// sh "${scannerHome}/bin/sonar-scanner"
sh "mvn sonar:sonar"
}
}
}
}
}