Skip to content
Snippets Groups Projects
Commit 484acd70 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

Merge branch '28-sonarqube-template-using-default-ca-certs' into 'master'

Resolve "[SonarQube Template] Using default ca certs"

Closes #28

See merge request to-be-continuous/sonar!56
parents 0162e3d5 b4373edb
No related branches found
No related tags found
No related merge requests found
......@@ -431,13 +431,11 @@ sonar:
export SONAR_TOKEN="$SONAR_AUTH_TOKEN"
fi
- |
if [[ -z "$CUSTOM_CA_CERTS" ]]
if [[ "$CUSTOM_CA_CERTS" ]] || [[ "$DEFAULT_CA_CERTS" ]]
then
log_info '$CUSTOM_CA_CERTS not set: using default keystore'
else
log_info '$CUSTOM_CA_CERTS variable detected: using writable keystore path (/tmp/writable_keystore)'
log_info "Custom CA certificates detected: using custom Java KeyStore"
export CUSTOM_KEYSTORE_PATH="/tmp/writable_keystore"
export CUSTOM_KEYSTORE_PASSWORD="changeit"
export CUSTOM_KEYSTORE_PASSWORD=${JAVA_KEYSTORE_PASSWORD:-changeit}
fi
- >-
sonar-scanner ${TRACE+-Dsonar.verbose=true} $java_proxy_args
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment