Browse Source

SONAR-20527 Fix environment step in gitlab tutorial

tags/10.3.0.82913
Mathieu Suen 8 months ago
parent
commit
6fca0b30c0

+ 1
- 11
server/sonar-web/src/main/js/components/tutorials/gitlabci/EnvironmentVariablesStep.tsx View 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" />,
}}
/>

+ 1
- 1
sonar-core/src/main/resources/org/sonar/l10n/core.properties View 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

Loading…
Cancel
Save