mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-18 13:55:50 +00:00
Set Sonar Enterprise host url
This commit is contained in:
parent
3234f1230f
commit
b02b7c785b
1 changed files with 2 additions and 1 deletions
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
@ -4,6 +4,7 @@ pipeline {
|
|||
}
|
||||
environment {
|
||||
BUILD_IMAGE = "registry.lksnext.com/devsecops/maven-java-17:2.0"
|
||||
SONAR_HOST_URL = "https://sonarqubeenterprise.devops.lksnext.com/"
|
||||
SONAR_TOKEN = credentials('sonar-analysis-token')
|
||||
}
|
||||
stages {
|
||||
|
@ -17,7 +18,7 @@ pipeline {
|
|||
docker run --rm \
|
||||
-v ./:/app \
|
||||
-v "/home/jenkins/.m2":"/home/jenkins/.m2" \
|
||||
-e MAVEN_CMD="clean verify sonar:sonar -Dsonar.host.url=$SONAR_LKS_HOST_URL -Dsonar.token=$SONAR_TOKEN" \
|
||||
-e MAVEN_CMD="clean verify sonar:sonar -Dsonar.host.url=$SONAR_HOST_URL -Dsonar.token=$SONAR_TOKEN" \
|
||||
$BUILD_IMAGE
|
||||
'''
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue