Skip to content

Commit e9d4451

Browse files
committed
NO-JIRA: var reference.
1 parent 1b809dd commit e9d4451

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CI.Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ node ("docker-light") {
1717
bash -c \"apt-get update && \
1818
apt-get install -y git && \
1919
pushd /source && \
20-
MY_SONAR_OPTS=\"-Dsonar.login=${env.SONAR_AUTH_TOKEN} -Dsonar.host.url=${env.SONAR_HOST_URL}\" \
20+
export MY_SONAR_OPTS=\"-Dsonar.login=${env.SONAR_AUTH_TOKEN} -Dsonar.host.url=${env.SONAR_HOST_URL}\" \
2121
if [[ ! -z ${env.CHANGE_BRANCH} ]]; then \
2222
MY_SONAR_OPTS+=-Dsonar.pullrequest.key=${env.CHANGE_ID} -Dsonar.pullrequest.base=${env.CHANGE_TARGET} -Dsonar.pullrequest.branch=${env.CHANGE_BRANCH} \
2323
fi \
24-
echo \"Sonar Options are: ${MY_SONAR_OPTS}\" \
24+
echo \"Sonar Options are: ${env.MY_SONAR_OPTS}\" \
2525
/opt/maven-basis/bin/mvn --batch-mode clean install sonar:sonar ${MY_SONAR_OPTS}\""
2626
}
2727
}

0 commit comments

Comments
 (0)