diff --git a/eng/pipelines/dotnet-framework-samples.yml b/eng/pipelines/dotnet-framework-samples.yml index 9d5ec722..2692b59d 100644 --- a/eng/pipelines/dotnet-framework-samples.yml +++ b/eng/pipelines/dotnet-framework-samples.yml @@ -17,31 +17,38 @@ parameters: building new images, leave this value alone. type: string default: $(Build.BuildId) +- name: noCache + displayName: > + Run build with no cache. When this is unchecked, the build will use the + info in the dotnet/versions repo to build only the images which have had + Dockerfile changes or base images updates. When this is checked, all images + will be built regardless of caching status. + type: boolean + default: false variables: - template: /eng/pipelines/variables/common.yml@self - parameters: - sourceBuildPipelineRunId: ${{ parameters.sourceBuildPipelineRunId }} -- template: /eng/common/templates/variables/dotnet/secrets.yml@self +- template: /eng/common/templates/variables/dotnet/secrets${{ iif(contains(variables['Build.DefinitionName'], '-official'), '', '-unofficial') }}.yml@self - name: manifest value: manifest.samples.json - name: imageInfoVariant value: "-samples" extends: - template: /eng/common/templates/1es-official.yml@self + template: /eng/common/templates/1es.yml@self parameters: - serviceConnections: - - name: $(internal-mirror.serviceConnectionName) - - name: $(build.serviceConnectionName) - - name: $(publish.serviceConnectionName) - - name: $(kusto.serviceConnectionName) - - name: $(marStatus.serviceConnectionName) + reposToExcludeFromScanning: + - VersionsRepo stages: - - template: /eng/common/templates/stages/dotnet/build-test-publish-repo.yml@self + - template: /eng/common/templates/stages/dotnet/publish-config-${{ iif(contains(variables['Build.DefinitionName'], '-official'), 'prod', 'nonprod') }}.yml@self parameters: - internalProjectName: ${{ variables.internalProjectName }} - publicProjectName: ${{ variables.publicProjectName }} - versionsRepoRef: VersionsRepo - ${{ if eq(variables['System.TeamProject'], 'public') }}: - buildMatrixCustomBuildLegGroupArgs: --custom-build-leg-group pr-build + sourceBuildPipelineRunId: ${{ parameters.sourceBuildPipelineRunId }} + stagesTemplate: /eng/pipelines/stages/dotnet-framework-base.yml@self + stagesTemplateParameters: + versionsRepoRef: VersionsRepo + sourceBuildPipelineRunId: ${{ parameters.sourceBuildPipelineRunId }} + noCache: ${{ parameters.noCache }} + ${{ if contains(variables['Build.DefinitionName'], '-official') }}: + additionalServiceConnections: + - name: $(kusto.serviceConnectionName) + - name: $(marStatus.serviceConnectionName)