Skip to content

Commit 807d914

Browse files
committed
NO-JIRA: Run sonar at the same time as other targets. This is recommended. CHANGE vars are null for a branch build. Try without.
1 parent 6947d21 commit 807d914

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

CI.Jenkinsfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,9 @@ node ("docker-light") {
1717
bash -c \"apt-get update && \
1818
apt-get install -y git && \
1919
pushd /source && \
20-
/opt/maven-basis/bin/mvn --batch-mode clean install && \
21-
/opt/maven-basis/bin/mvn --batch-mode sonar:sonar \
20+
/opt/maven-basis/bin/mvn --batch-mode clean install sonar:sonar \
2221
-Dsonar.login=${env.SONAR_AUTH_TOKEN} \
23-
-Dsonar.host.url=${env.SONAR_HOST_URL} \
24-
-Dsonar.pullrequest.key=${env.CHANGE_ID} \
25-
-Dsonar.pullrequest.base=${env.CHANGE_TARGET} \
26-
-Dsonar.pullrequest.branch=${env.CHANGE_BRANCH}\""
22+
-Dsonar.host.url=${env.SONAR_HOST_URL}\""
2723
}
2824
}
2925
slack(true)

0 commit comments

Comments
 (0)