mirror of https://github.com/jellyfin/jellyfin.git
Only run SonarCloud analysis for ubuntu tests
This commit is contained in:
parent
c5f163293f
commit
9a401c3728
|
@ -31,6 +31,7 @@ jobs:
|
||||||
# This is required for the SonarCloud analyzer
|
# This is required for the SonarCloud analyzer
|
||||||
- task: UseDotNet@2
|
- task: UseDotNet@2
|
||||||
displayName: "Install .NET Core SDK 2.1"
|
displayName: "Install .NET Core SDK 2.1"
|
||||||
|
condition: eq(variables['ImageName'], 'ubuntu-latest')
|
||||||
inputs:
|
inputs:
|
||||||
packageType: sdk
|
packageType: sdk
|
||||||
version: '2.1.805'
|
version: '2.1.805'
|
||||||
|
@ -43,6 +44,7 @@ jobs:
|
||||||
|
|
||||||
- task: SonarCloudPrepare@1
|
- task: SonarCloudPrepare@1
|
||||||
displayName: 'Prepare analysis on SonarCloud'
|
displayName: 'Prepare analysis on SonarCloud'
|
||||||
|
condition: eq(variables['ImageName'], 'ubuntu-latest')
|
||||||
inputs:
|
inputs:
|
||||||
SonarCloud: 'Sonarcloud for Jellyfin'
|
SonarCloud: 'Sonarcloud for Jellyfin'
|
||||||
organization: 'jellyfin'
|
organization: 'jellyfin'
|
||||||
|
@ -60,9 +62,11 @@ jobs:
|
||||||
|
|
||||||
- task: SonarCloudAnalyze@1
|
- task: SonarCloudAnalyze@1
|
||||||
displayName: 'Run Code Analysis'
|
displayName: 'Run Code Analysis'
|
||||||
|
condition: eq(variables['ImageName'], 'ubuntu-latest')
|
||||||
|
|
||||||
- task: SonarCloudPublish@1
|
- task: SonarCloudPublish@1
|
||||||
displayName: 'Publish Quality Gate Result'
|
displayName: 'Publish Quality Gate Result'
|
||||||
|
condition: eq(variables['ImageName'], 'ubuntu-latest')
|
||||||
|
|
||||||
- task: Palmmedia.reportgenerator.reportgenerator-build-release-task.reportgenerator@4
|
- task: Palmmedia.reportgenerator.reportgenerator-build-release-task.reportgenerator@4
|
||||||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux')) # !! THIS is for V1 only V2 will/should support merging
|
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux')) # !! THIS is for V1 only V2 will/should support merging
|
||||||
|
|
Loading…
Reference in New Issue