From: Jeremy Davis Date: Tue, 18 Jul 2023 16:19:42 +0000 (+0200) Subject: SONAR-19909 Minor fixes for azure X-Git-Tag: 10.2.0.77647~316 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6d3df8433363e14c9dbd3bf7cec0a27a72f85a00;p=sonarqube.git SONAR-19909 Minor fixes for azure --- diff --git a/server/sonar-web/src/main/js/components/tutorials/azure-pipelines/commands/ClangGCC.tsx b/server/sonar-web/src/main/js/components/tutorials/azure-pipelines/commands/ClangGCC.tsx index 2b84388ef07..c2da7e4147e 100644 --- a/server/sonar-web/src/main/js/components/tutorials/azure-pipelines/commands/ClangGCC.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/azure-pipelines/commands/ClangGCC.tsx @@ -51,7 +51,7 @@ type OsConstant = { export default function ClangGCC(props: ClangGCCProps) { const { projectKey, onStepValidationChange } = props; - const [os, setOs] = React.useState(); + const [os, setOs] = React.useState(OSs.Linux); const host = getHostUrl(); const codeSnippetDownload: OsConstant = { @@ -126,10 +126,7 @@ unzip build-wrapper.zip`, highlightPrefixKeys={codeSnippetDownload[os].highlightScriptKey} highlightKeys={['task', 'inline']} /> - + @@ -159,7 +156,7 @@ unzip build-wrapper.zip`, highlightKeys={['build_wrapper']} />