mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-01 09:42:13 +00:00
--stacktrace for Sonar
This commit is contained in:
parent
e19fdb6cc1
commit
8db41665a9
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -14,7 +14,7 @@ try {
|
|||||||
node {
|
node {
|
||||||
checkout scm
|
checkout scm
|
||||||
try {
|
try {
|
||||||
sh "./gradlew clean check --refresh-dependencies --no-daemon"
|
sh "./gradlew clean check --refresh-dependencies --no-daemon --stacktrace"
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
currentBuild.result = 'FAILED: check'
|
currentBuild.result = 'FAILED: check'
|
||||||
throw e
|
throw e
|
||||||
@ -30,7 +30,7 @@ try {
|
|||||||
checkout scm
|
checkout scm
|
||||||
withCredentials([string(credentialsId: 'spring-sonar.login', variable: 'SONAR_LOGIN')]) {
|
withCredentials([string(credentialsId: 'spring-sonar.login', variable: 'SONAR_LOGIN')]) {
|
||||||
try {
|
try {
|
||||||
sh "./gradlew clean sonarqube -PexcludeProjects='**/samples/**' -Dsonar.host.url=$SPRING_SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN --refresh-dependencies --no-daemon"
|
sh "./gradlew clean sonarqube -PexcludeProjects='**/samples/**' -Dsonar.host.url=$SPRING_SONAR_HOST_URL -Dsonar.login=$SONAR_LOGIN --refresh-dependencies --no-daemon --stacktrace"
|
||||||
} catch(Exception e) {
|
} catch(Exception e) {
|
||||||
currentBuild.result = 'FAILED: sonar'
|
currentBuild.result = 'FAILED: sonar'
|
||||||
throw e
|
throw e
|
||||||
|
Loading…
x
Reference in New Issue
Block a user