diff --git a/eng/common/templates/jobs/generate-matrix.yml b/eng/common/templates/jobs/generate-matrix.yml index 4fc4ae759..f4fb75c0b 100644 --- a/eng/common/templates/jobs/generate-matrix.yml +++ b/eng/common/templates/jobs/generate-matrix.yml @@ -6,6 +6,7 @@ parameters: isTestStage: false internalProjectName: null noCache: false + customInitSteps: [] commonInitStepsForMatrixAndBuild: [] jobs: @@ -15,6 +16,7 @@ jobs: - ${{ parameters.commonInitStepsForMatrixAndBuild }} - template: /eng/common/templates/steps/retain-build.yml@self - template: /eng/common/templates/steps/init-docker-linux.yml@self + - ${{ parameters.customInitSteps }} - template: /eng/common/templates/steps/validate-branch.yml@self parameters: internalProjectName: ${{ parameters.internalProjectName }} diff --git a/eng/common/templates/stages/build-test-publish-repo.yml b/eng/common/templates/stages/build-test-publish-repo.yml index 8ec26e70f..0a5b9ef35 100644 --- a/eng/common/templates/stages/build-test-publish-repo.yml +++ b/eng/common/templates/stages/build-test-publish-repo.yml @@ -4,6 +4,7 @@ parameters: buildMatrixCustomBuildLegGroupArgs: "" testMatrixCustomBuildLegGroupArgs: "" customCopyBaseImagesInitSteps: [] + customGenerateMatrixInitSteps: [] customBuildInitSteps: [] customTestInitSteps: [] customPublishInitSteps: [] @@ -83,6 +84,7 @@ stages: customBuildLegGroupArgs: ${{ parameters.buildMatrixCustomBuildLegGroupArgs }} internalProjectName: ${{ parameters.internalProjectName }} noCache: ${{ parameters.noCache }} + customInitSteps: ${{ parameters.customGenerateMatrixInitSteps }} commonInitStepsForMatrixAndBuild: - template: /eng/common/templates/steps/common-init-for-matrix-and-build.yml@self parameters: @@ -257,6 +259,7 @@ stages: isTestStage: true internalProjectName: ${{ parameters.internalProjectName }} publicProjectName: ${{ parameters.publicProjectName }} + customInitSteps: ${{ parameters.customGenerateMatrixInitSteps }} commonInitStepsForMatrixAndBuild: - template: /eng/common/templates/steps/common-init-for-matrix-and-build.yml@self parameters: diff --git a/eng/common/templates/stages/dotnet/build-test-publish-repo.yml b/eng/common/templates/stages/dotnet/build-test-publish-repo.yml index 471b01fc3..973fb1fd1 100644 --- a/eng/common/templates/stages/dotnet/build-test-publish-repo.yml +++ b/eng/common/templates/stages/dotnet/build-test-publish-repo.yml @@ -8,6 +8,7 @@ parameters: buildMatrixCustomBuildLegGroupArgs: "" testMatrixCustomBuildLegGroupArgs: "" customCopyBaseImagesInitSteps: [] + customGenerateMatrixInitSteps: [] customBuildInitSteps: [] customTestInitSteps: [] customPublishInitSteps: [] @@ -27,6 +28,7 @@ stages: internalProjectName: ${{ parameters.internalProjectName }} publicProjectName: ${{ parameters.publicProjectName }} isInternalServicingValidation: ${{ parameters.isInternalServicingValidation }} + customGenerateMatrixInitSteps: ${{ parameters.customGenerateMatrixInitSteps }} buildMatrixCustomBuildLegGroupArgs: ${{ parameters.buildMatrixCustomBuildLegGroupArgs }} testMatrixCustomBuildLegGroupArgs: ${{ parameters.testMatrixCustomBuildLegGroupArgs }} customCopyBaseImagesInitSteps: ${{ parameters.customCopyBaseImagesInitSteps}}