Skip to content

Commit ffa5214

Browse files
committed
[release/5.0-preview3] Don't run Code Check in official builds
1 parent 39a2422 commit ffa5214

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

.azure/pipelines/ci.yml

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -92,27 +92,28 @@ stages:
9292
displayName: Build
9393
jobs:
9494
# Code check
95-
- template: jobs/default-build.yml
96-
parameters:
97-
jobName: Code_check
98-
jobDisplayName: Code check
99-
agentOs: Windows
100-
steps:
101-
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
102-
- task: PowerShell@2
103-
displayName: Setup Private Feeds Credentials
104-
inputs:
105-
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
106-
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
107-
env:
108-
Token: $(dn-bot-dnceng-artifact-feeds-rw)
109-
- powershell: ./eng/scripts/CodeCheck.ps1 -ci $(_InternalRuntimeDownloadArgs)
110-
displayName: Run eng/scripts/CodeCheck.ps1
111-
artifacts:
112-
- name: Code_Check_Logs
113-
path: artifacts/log/
114-
publishOnError: true
115-
includeForks: true
95+
- ${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
96+
- template: jobs/default-build.yml
97+
parameters:
98+
jobName: Code_check
99+
jobDisplayName: Code check
100+
agentOs: Windows
101+
steps:
102+
- ${{ if ne(variables['System.TeamProject'], 'public') }}:
103+
- task: PowerShell@2
104+
displayName: Setup Private Feeds Credentials
105+
inputs:
106+
filePath: $(Build.SourcesDirectory)/eng/common/SetupNugetSources.ps1
107+
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -Password $Env:Token
108+
env:
109+
Token: $(dn-bot-dnceng-artifact-feeds-rw)
110+
- powershell: ./eng/scripts/CodeCheck.ps1 -ci $(_InternalRuntimeDownloadArgs)
111+
displayName: Run eng/scripts/CodeCheck.ps1
112+
artifacts:
113+
- name: Code_Check_Logs
114+
path: artifacts/log/
115+
publishOnError: true
116+
includeForks: true
116117

117118
# Build Windows (x64/x86)
118119
- template: jobs/default-build.yml
@@ -594,7 +595,7 @@ stages:
594595
parameters:
595596
condition: ne(variables['SkipTests'], 'true')
596597
jobName: MacOS_Test
597-
jobDisplayName: "Test: macOS 10.13"
598+
jobDisplayName: "Test: macOS 10.14"
598599
agentOs: macOS
599600
isTestingJob: true
600601
buildArgs: --all --test "/p:RunTemplateTests=false /p:SkipHelixReadyTests=true" $(_InternalRuntimeDownloadArgs)

0 commit comments

Comments
 (0)