mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-19 05:55:51 +00:00
Removed dead code. Commented out QA approval for now.
This commit is contained in:
parent
60a6d74586
commit
807a24d22d
2 changed files with 4 additions and 20 deletions
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
|
@ -6,33 +6,17 @@ pipeline {
|
||||||
maven 'Maven 3.5.0'
|
maven 'Maven 3.5.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
agent none
|
agent any
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Build, Test, and Package') {
|
stage('Build, Test, and Package') {
|
||||||
agent any
|
|
||||||
steps {
|
steps {
|
||||||
sh "mvn clean package"
|
sh "mvn clean package"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('SonarQube analysis') {
|
stage('SonarQube analysis') {
|
||||||
agent any
|
|
||||||
steps {
|
steps {
|
||||||
// jenkins SQ token: 9ba8e3134a1cbc76910a73579a888b5e91df9717
|
|
||||||
//withSonarQubeEnv('Staging') {
|
|
||||||
// sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar ' +
|
|
||||||
// '-f pom.xml ' +
|
|
||||||
// '-Dsonar.projectKey=com.huettermann:all:master ' +
|
|
||||||
// '-Dsonar.login=$SONAR_UN ' +
|
|
||||||
// '-Dsonar.password=$SONAR_PW ' +
|
|
||||||
// '-Dsonar.language=java ' +
|
|
||||||
// '-Dsonar.sources=. ' +
|
|
||||||
// '-Dsonar.tests=. ' +
|
|
||||||
// '-Dsonar.test.inclusions=**/*Test*/** ' +
|
|
||||||
// '-Dsonar.exclusions=**/*Test*/**'
|
|
||||||
//}
|
|
||||||
|
|
||||||
script {
|
script {
|
||||||
scannerHome = tool 'SonarQube_Scanner_3.0.3.778';
|
scannerHome = tool 'SonarQube_Scanner_3.0.3.778';
|
||||||
}
|
}
|
||||||
|
@ -58,9 +42,9 @@ pipeline {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
stage('Approve for QA') {
|
stage('Approve for QA') {
|
||||||
agent any
|
|
||||||
steps {
|
steps {
|
||||||
input 'Sally forth?'
|
// input 'Sally forth?'
|
||||||
|
echo 'Pipeline done'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,6 +14,6 @@ sonar.sources=src/main
|
||||||
sonar.sourceEncoding=UTF-8
|
sonar.sourceEncoding=UTF-8
|
||||||
|
|
||||||
# other stuff
|
# other stuff
|
||||||
sonar.host.url=http://sonarqube.kcura.corp/
|
sonar.host.url=http://mssonarstg81.morningstar.com:9000
|
||||||
sonar.java.binaries=target/classes
|
sonar.java.binaries=target/classes
|
||||||
sonar.junit.reportsPath=target/surefire-reports
|
sonar.junit.reportsPath=target/surefire-reports
|
Loading…
Reference in a new issue