Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SonarQube
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
CI-CD components
SonarQube
Commits
b4373edb
Commit
b4373edb
authored
2 months ago
by
Guilhem Bonnefille
Committed by
Pierre Smeyers
2 months ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: use keystore when either DEFAULT_CA_CERTS or CUSTOM_CA_CERTS are set
parent
626d6734
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/gitlab-ci-sonar.yml
+3
-5
3 additions, 5 deletions
templates/gitlab-ci-sonar.yml
with
3 additions
and
5 deletions
templates/gitlab-ci-sonar.yml
+
3
−
5
View file @
b4373edb
...
@@ -431,13 +431,11 @@ sonar:
...
@@ -431,13 +431,11 @@ sonar:
export SONAR_TOKEN="$SONAR_AUTH_TOKEN"
export SONAR_TOKEN="$SONAR_AUTH_TOKEN"
fi
fi
-
|
-
|
if [[
-z
"$CUSTOM_CA_CERTS" ]]
if [[ "$CUSTOM_CA_CERTS" ]]
|| [[ "$DEFAULT_CA_CERTS" ]]
then
then
log_info '$CUSTOM_CA_CERTS not set: using default keystore'
log_info "Custom CA certificates detected: using custom Java KeyStore"
else
log_info '$CUSTOM_CA_CERTS variable detected: using writable keystore path (/tmp/writable_keystore)'
export CUSTOM_KEYSTORE_PATH="/tmp/writable_keystore"
export CUSTOM_KEYSTORE_PATH="/tmp/writable_keystore"
export CUSTOM_KEYSTORE_PASSWORD=
"
changeit
"
export CUSTOM_KEYSTORE_PASSWORD=
${JAVA_KEYSTORE_PASSWORD:-
changeit
}
fi
fi
-
>-
-
>-
sonar-scanner ${TRACE+-Dsonar.verbose=true} $java_proxy_args
sonar-scanner ${TRACE+-Dsonar.verbose=true} $java_proxy_args
...
...
This diff is collapsed.
Click to expand it.
Benguria Elguezabal, Gorka
@gorka.benguria
mentioned in commit
254a9d19
·
4 weeks ago
mentioned in commit
254a9d19
mentioned in commit 254a9d19bfa878af96c96440f5b641d6424a491e
Toggle commit list
Ghost User
@ghost
mentioned in commit
002a6caa
·
4 weeks ago
mentioned in commit
002a6caa
mentioned in commit 002a6caa3585b51abf1c99edcd2e890d63fc7bd3
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment