From: Mathieu Suen Date: Mon, 14 Jun 2021 08:40:01 +0000 (+0200) Subject: SONAR-14968 Enable Azure- pipeline for project bind to GitHub X-Git-Tag: 9.0.0.45539~109 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=81281c2cf6b4a59ae74e8ad3d5e129f65770e9fe;p=sonarqube.git SONAR-14968 Enable Azure- pipeline for project bind to GitHub --- diff --git a/server/sonar-web/src/main/js/components/tutorials/TutorialSelectionRenderer.tsx b/server/sonar-web/src/main/js/components/tutorials/TutorialSelectionRenderer.tsx index b724e53b3b6..f9f1f519411 100644 --- a/server/sonar-web/src/main/js/components/tutorials/TutorialSelectionRenderer.tsx +++ b/server/sonar-web/src/main/js/components/tutorials/TutorialSelectionRenderer.tsx @@ -55,6 +55,9 @@ export default function TutorialSelectionRenderer(props: TutorialSelectionRender return ; } + const isAzureAvailable = + projectBinding && [AlmKeys.Azure, AlmKeys.GitHub].includes(projectBinding.alm); + const jenkinsAvailable = projectBinding && [AlmKeys.BitbucketCloud, AlmKeys.BitbucketServer, AlmKeys.GitHub, AlmKeys.GitLab].includes( @@ -105,7 +108,7 @@ export default function TutorialSelectionRenderer(props: TutorialSelectionRender )} - {projectBinding?.alm === AlmKeys.Azure && ( + {isAzureAvailable && ( +