]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-20527 Fix environment step in gitlab tutorial
authorMathieu Suen <mathieu.suen@sonarsource.com>
Tue, 3 Oct 2023 08:42:55 +0000 (10:42 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 4 Oct 2023 20:03:19 +0000 (20:03 +0000)
server/sonar-web/src/main/js/components/tutorials/gitlabci/EnvironmentVariablesStep.tsx
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index a21adb9259f4584f39f928e7a553b0640f5ab45b..ad60086f9cde276da4e9c7cfff9d040665c91488 100644 (file)
@@ -68,17 +68,12 @@ export default function EnvironmentVariablesStep(props: EnvironmentVariablesStep
         <UnorderedList ticks className="sw-ml-10">
           <ListItem>
             <FormattedMessage
-              defaultMessage={fieldValueTranslation}
               id="onboarding.tutorial.with.gitlab_ci.variables.step1"
               values={{
                 extra: (
                   <ClipboardIconButton copyValue="SONAR_TOKEN" className="sw-ml-1 sw-align-sub" />
                 ),
-                field: (
-                  <span className="sw-body-sm-highlight">
-                    {translate('onboarding.tutorial.with.gitlab_ci.variables.step1')}
-                  </span>
-                ),
+
                 value: <InlineSnippet snippet="SONAR_TOKEN" />,
               }}
             />
@@ -143,11 +138,6 @@ export default function EnvironmentVariablesStep(props: EnvironmentVariablesStep
                     className="sw-ml-1 sw-align-sub"
                   />
                 ),
-                field: (
-                  <span className="sw-body-sm-highlight">
-                    {translate('onboarding.tutorial.with.gitlab_ci.variables.step1')}
-                  </span>
-                ),
                 value: <InlineSnippet snippet="SONAR_HOST_URL" />,
               }}
             />
index cc85b2a30a4079616d55c7000940bdb2d47bfe48..168e14a5dbd6c22e632a8e80508e19f33fe22006 100644 (file)
@@ -4329,7 +4329,7 @@ onboarding.tutorial.with.gitlab_ci.variables.description.link=Settings > CI/CD >
 onboarding.tutorial.with.gitlab_ci.variables.section.title=Define the SonarQube Token environment variable.
 onboarding.tutorial.with.gitlab_ci.variables.section.description=In GitLab, go to {link} to add the following variable and make sure it is available for your project:
 onboarding.tutorial.with.gitlab_ci.variables.edit.token.tooltip=Use an existing token or generate a new one.
-onboarding.tutorial.with.gitlab_ci.variables.step1=Key
+onboarding.tutorial.with.gitlab_ci.variables.step1=Key {value} {extra}
 
 onboarding.tutorial.with.gitlab_ci.variables.step3=Uncheck the {value} checkbox.
 onboarding.tutorial.with.gitlab_ci.variables.step3.value=Protect Variable