Add SkipGovernance parameter support
This commit is contained in:
Родитель
60c70ca7e8
Коммит
a849d73562
|
@ -14,6 +14,12 @@ pool:
|
||||||
trigger: none # ci trigger is set in ADO
|
trigger: none # ci trigger is set in ADO
|
||||||
pr: none # pr trigger is set in ADO
|
pr: none # pr trigger is set in ADO
|
||||||
|
|
||||||
|
parameters:
|
||||||
|
- name: SkipGovernance
|
||||||
|
displayName: Skip Governance
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
ApiCompatVersion: 4.6.3
|
ApiCompatVersion: 4.6.3
|
||||||
BotBuilderDll: Microsoft.Bot.Builder.AI.Luis,Microsoft.Bot.Builder.AI.QnA,Microsoft.Bot.Builder.ApplicationInsights,Microsoft.Bot.Builder.Azure,Microsoft.Bot.Builder.Dialogs,Microsoft.Bot.Builder.Integration.ApplicationInsights.Core,Microsoft.Bot.Builder.Integration.AspNet.Core,Microsoft.Bot.Builder.TemplateManager,Microsoft.Bot.Builder.Testing,Microsoft.Bot.Builder,Microsoft.Bot.Configuration,Microsoft.Bot.Connector,Microsoft.Bot.Schema,Microsoft.Bot.Streaming
|
BotBuilderDll: Microsoft.Bot.Builder.AI.Luis,Microsoft.Bot.Builder.AI.QnA,Microsoft.Bot.Builder.ApplicationInsights,Microsoft.Bot.Builder.Azure,Microsoft.Bot.Builder.Dialogs,Microsoft.Bot.Builder.Integration.ApplicationInsights.Core,Microsoft.Bot.Builder.Integration.AspNet.Core,Microsoft.Bot.Builder.TemplateManager,Microsoft.Bot.Builder.Testing,Microsoft.Bot.Builder,Microsoft.Bot.Configuration,Microsoft.Bot.Connector,Microsoft.Bot.Schema,Microsoft.Bot.Streaming
|
||||||
|
@ -46,8 +52,11 @@ stages:
|
||||||
BuildTarget: 'netcoreapp31' # set the TargetFramework property for tests to use netcoreapp3.1
|
BuildTarget: 'netcoreapp31' # set the TargetFramework property for tests to use netcoreapp3.1
|
||||||
steps:
|
steps:
|
||||||
- template: ci-build-steps.yml
|
- template: ci-build-steps.yml
|
||||||
|
parameters:
|
||||||
|
SkipGovernance: ${{ parameters.SkipGovernance }}
|
||||||
- template: ci-test-steps.yml
|
- template: ci-test-steps.yml
|
||||||
- template: ci-component-detection-steps.yml
|
- ${{ if not(parameters.SkipGovernance) }}:
|
||||||
|
- template: ci-component-detection-steps.yml
|
||||||
- job: Release_Windows_Configuration_31
|
- job: Release_Windows_Configuration_31
|
||||||
variables:
|
variables:
|
||||||
BuildConfiguration: Release-Windows
|
BuildConfiguration: Release-Windows
|
||||||
|
@ -55,8 +64,11 @@ stages:
|
||||||
PublishCoverage: true
|
PublishCoverage: true
|
||||||
steps:
|
steps:
|
||||||
- template: ci-build-steps.yml
|
- template: ci-build-steps.yml
|
||||||
|
parameters:
|
||||||
|
SkipGovernance: ${{ parameters.SkipGovernance }}
|
||||||
- template: ci-test-steps.yml
|
- template: ci-test-steps.yml
|
||||||
- template: ci-component-detection-steps.yml
|
- ${{ if not(parameters.SkipGovernance) }}:
|
||||||
|
- template: ci-component-detection-steps.yml
|
||||||
|
|
||||||
- stage: API_Compatibility_Validation
|
- stage: API_Compatibility_Validation
|
||||||
dependsOn: Build
|
dependsOn: Build
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
parameters:
|
||||||
|
- name: SkipGovernance
|
||||||
|
displayName: Skip Governance
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- powershell: 'gci env:* | sort-object name | Format-Table -AutoSize -Wrap'
|
- powershell: 'gci env:* | sort-object name | Format-Table -AutoSize -Wrap'
|
||||||
displayName: 'Display env vars'
|
displayName: 'Display env vars'
|
||||||
|
@ -27,11 +33,12 @@ steps:
|
||||||
configuration: '$(BuildConfiguration)'
|
configuration: '$(BuildConfiguration)'
|
||||||
maximumCpuCount: true
|
maximumCpuCount: true
|
||||||
logProjectEvents: false
|
logProjectEvents: false
|
||||||
|
|
||||||
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
- ${{ if not(parameters.SkipGovernance) }}:
|
||||||
displayName: 'Component Detection'
|
- task: ms.vss-governance-buildtask.governance-build-task-component-detection.ComponentGovernanceComponentDetection@0
|
||||||
inputs:
|
displayName: 'Component Detection'
|
||||||
failOnAlert: true
|
inputs:
|
||||||
|
failOnAlert: true
|
||||||
|
|
||||||
- script: |
|
- script: |
|
||||||
cd ..
|
cd ..
|
||||||
|
|
Загрузка…
Ссылка в новой задаче