aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2024-09-24 18:37:46 +0200
committersonartech <sonartech@sonarsource.com>2024-09-26 20:03:16 +0000
commit844056dd3ea11d202895154e6c83068baef458c1 (patch)
tree35aa53ee3dc1433b1b9b9b4abe6dac5eb92aa3b2
parent021c7d4764e6f4e28b1741de4fdc6961ea82f37f (diff)
downloadsonarqube-844056dd3ea11d202895154e6c83068baef458c1.tar.gz
sonarqube-844056dd3ea11d202895154e6c83068baef458c1.zip
SONAR-23139 Recommend to use a locked major version of the Docker image
Co-authored-by: Benjamin Raymond <31401273+7PH@users.noreply.github.com>
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/GitLabCITutorial-it.tsx.snap2
-rw-r--r--server/sonar-web/src/main/js/components/tutorials/gitlabci/commands/PipeCommand.tsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/GitLabCITutorial-it.tsx.snap b/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/GitLabCITutorial-it.tsx.snap
index 4097c7460d0..607a8fbc50b 100644
--- a/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/GitLabCITutorial-it.tsx.snap
+++ b/server/sonar-web/src/main/js/components/tutorials/gitlabci/__tests__/__snapshots__/GitLabCITutorial-it.tsx.snap
@@ -369,7 +369,7 @@ exports[`should follow and complete all steps: Maven: pom.xml 1`] = `
exports[`should follow and complete all steps: Other: gitlab-ci.yml 1`] = `
"image:
- name: sonarsource/sonar-scanner-cli:latest
+ name: sonarsource/sonar-scanner-cli:11
entrypoint: [""]
variables:
diff --git a/server/sonar-web/src/main/js/components/tutorials/gitlabci/commands/PipeCommand.tsx b/server/sonar-web/src/main/js/components/tutorials/gitlabci/commands/PipeCommand.tsx
index e9f208a7161..161620d17e8 100644
--- a/server/sonar-web/src/main/js/components/tutorials/gitlabci/commands/PipeCommand.tsx
+++ b/server/sonar-web/src/main/js/components/tutorials/gitlabci/commands/PipeCommand.tsx
@@ -85,7 +85,7 @@ const BUILD_TOOL_SPECIFIC: {
},
[BuildTools.Other]: {
image: `
- name: sonarsource/sonar-scanner-cli:latest
+ name: sonarsource/sonar-scanner-cli:11
entrypoint: [""]`,
script: () => `
- sonar-scanner -Dsonar.host.url="\${SONAR_HOST_URL}"`,