From 6439634e01735dd51d2481e4db3feb87f83dd6d1 Mon Sep 17 00:00:00 2001 From: James Suplizio Date: Mon, 3 Jun 2024 10:32:43 -0700 Subject: [PATCH 1/3] PAT Removal from pipeline generation yml --- .../templates/jobs/prepare-pipelines.yml | 311 +++++++++--------- eng/pipelines/pipeline-generation-single.yml | 37 ++- eng/pipelines/pipeline-generation.yml | 219 ++++++------ 3 files changed, 300 insertions(+), 267 deletions(-) diff --git a/eng/common/pipelines/templates/jobs/prepare-pipelines.yml b/eng/common/pipelines/templates/jobs/prepare-pipelines.yml index 9cbabda4328..32427e7e242 100644 --- a/eng/common/pipelines/templates/jobs/prepare-pipelines.yml +++ b/eng/common/pipelines/templates/jobs/prepare-pipelines.yml @@ -35,166 +35,181 @@ jobs: - template: /eng/common/pipelines/templates/steps/set-default-branch.yml # This covers our public repos. - ${{ if not(endsWith(parameters.Repository, '-pr'))}}: - - script: > - $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate - --organization azure-sdk - --project public - --prefix ${{parameters.Prefix}} - --devopspath "\${{parameters.Prefix}}" - --path $(System.DefaultWorkingDirectory)/sdk - --endpoint Azure - --repository ${{parameters.Repository}} - --convention ci - --agentpool Hosted - --branch refs/heads/$(DefaultBranch) - --patvar PATVAR - --set-managed-variables - --debug - ${{parameters.CIConventionOptions}} + - task: AzureCLI@2 + inputs: + azureSubscription: 'opensource-api-connection' + scriptType: pscore + scriptLocation: inlineScript + inlineScript: + $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate ` + --organization azure-sdk ` + --project public ` + --prefix ${{parameters.Prefix}} ` + --devopspath "\${{parameters.Prefix}}" ` + --path $(System.DefaultWorkingDirectory)/sdk ` + --endpoint Azure ` + --repository ${{parameters.Repository}} ` + --convention ci ` + --agentpool Hosted ` + --branch refs/heads/$(DefaultBranch) ` + --set-managed-variables ` + --debug ` + ${{parameters.CIConventionOptions}} displayName: Create CI Pipelines for Public Repository - env: - PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat) - - script: > - $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate - --organization azure-sdk - --project internal - --prefix ${{parameters.Prefix}} - --devopspath "\${{parameters.Prefix}}" - --path $(System.DefaultWorkingDirectory)/sdk - --endpoint Azure - --repository ${{parameters.Repository}} - --convention up - --agentpool Hosted - --branch refs/heads/$(DefaultBranch) - --patvar PATVAR - --set-managed-variables - --debug - ${{parameters.UPConventionOptions}} + - task: AzureCLI@2 + inputs: + azureSubscription: 'opensource-api-connection' + scriptType: pscore + scriptLocation: inlineScript + inlineScript: + $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate ` + --organization azure-sdk ` + --project internal ` + --prefix ${{parameters.Prefix}} ` + --devopspath "\${{parameters.Prefix}}" ` + --path $(System.DefaultWorkingDirectory)/sdk ` + --endpoint Azure ` + --repository ${{parameters.Repository}} ` + --convention up ` + --agentpool Hosted ` + --branch refs/heads/$(DefaultBranch) ` + --set-managed-variables ` + --debug ` + ${{parameters.UPConventionOptions}} displayName: Create UP Pipelines for Public Repository - env: - PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat) - - script: > - $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate - --organization azure-sdk - --project internal - --prefix ${{parameters.Prefix}} - --devopspath "\${{parameters.Prefix}}" - --path $(System.DefaultWorkingDirectory)/sdk - --endpoint Azure - --repository ${{parameters.Repository}} - --convention tests - --agentpool Hosted - --branch refs/heads/$(DefaultBranch) - --patvar PATVAR - --set-managed-variables - --debug - ${{parameters.TestsConventionOptions}} + - task: AzureCLI@2 + inputs: + azureSubscription: 'opensource-api-connection' + scriptType: pscore + scriptLocation: inlineScript + inlineScript: + $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate ` + --organization azure-sdk ` + --project internal ` + --prefix ${{parameters.Prefix}} ` + --devopspath "\${{parameters.Prefix}}" ` + --path $(System.DefaultWorkingDirectory)/sdk ` + --endpoint Azure ` + --repository ${{parameters.Repository}} ` + --convention tests ` + --agentpool Hosted ` + --branch refs/heads/$(DefaultBranch) ` + --set-managed-variables ` + --debug ` + ${{parameters.TestsConventionOptions}} displayName: Create Live Test Pipelines for Public Repository condition: and(succeeded(), ne('${{parameters.TestsConventionOptions}}','')) - env: - PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat) - - script: > - $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate - --organization azure-sdk - --project internal - --prefix ${{parameters.Prefix}} - --devopspath "\${{parameters.Prefix}}" - --path $(System.DefaultWorkingDirectory)/sdk - --endpoint Azure - --repository ${{parameters.Repository}} - --convention testsweekly - --agentpool Hosted - --branch refs/heads/$(DefaultBranch) - --patvar PATVAR - --set-managed-variables - --debug - ${{parameters.TestsConventionOptions}} + - task: AzureCLI@2 + inputs: + azureSubscription: 'opensource-api-connection' + scriptType: pscore + scriptLocation: inlineScript + inlineScript: + $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate ` + --organization azure-sdk ` + --project internal ` + --prefix ${{parameters.Prefix}} ` + --devopspath "\${{parameters.Prefix}}" ` + --path $(System.DefaultWorkingDirectory)/sdk ` + --endpoint Azure ` + --repository ${{parameters.Repository}} ` + --convention testsweekly ` + --agentpool Hosted ` + --branch refs/heads/$(DefaultBranch) ` + --set-managed-variables ` + --debug ` + ${{parameters.TestsConventionOptions}} displayName: Create Weekly (Multi-Cloud) Live Test Pipelines for Public Repository condition: and(succeeded(), ne('${{parameters.TestsConventionOptions}}','')) - env: - PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat) - - script: > - $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate - --organization azure-sdk - --project internal - --prefix ${{parameters.Prefix}} - --devopspath "\${{parameters.Prefix}}" - --path $(System.DefaultWorkingDirectory)/sdk - --endpoint Azure - --repository ${{parameters.Repository}} - --convention upweekly - --agentpool Hosted - --branch refs/heads/$(DefaultBranch) - --patvar PATVAR - --set-managed-variables - --debug - ${{parameters.UPConventionOptions}} + - task: AzureCLI@2 + inputs: + azureSubscription: 'opensource-api-connection' + scriptType: pscore + scriptLocation: inlineScript + inlineScript: + $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate ` + --organization azure-sdk ` + --project internal ` + --prefix ${{parameters.Prefix}} ` + --devopspath "\${{parameters.Prefix}}" ` + --path $(System.DefaultWorkingDirectory)/sdk ` + --endpoint Azure ` + --repository ${{parameters.Repository}} ` + --convention upweekly ` + --agentpool Hosted ` + --branch refs/heads/$(DefaultBranch) ` + --set-managed-variables ` + --debug ` + ${{parameters.UPConventionOptions}} displayName: Create Weekly (Multi-Cloud) Unified Test Pipelines for Public Repository condition: and(succeeded(), eq(${{parameters.GenerateUnifiedWeekly}},true)) - env: - PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat) - # This covers our -pr repositories. - ${{ if endsWith(parameters.Repository, '-pr')}}: - - script: > - $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate - --organization azure-sdk - --project internal - --prefix ${{parameters.Prefix}}-pr - --devopspath "\${{parameters.Prefix}}\pr" - --path $(System.DefaultWorkingDirectory)/sdk - --endpoint Azure - --repository ${{parameters.Repository}} - --convention ci - --agentpool Hosted - --branch refs/heads/$(DefaultBranch) - --patvar PATVAR - --set-managed-variables - --debug - --no-schedule - ${{parameters.CIConventionOptions}} + - task: AzureCLI@2 + inputs: + azureSubscription: 'opensource-api-connection' + scriptType: pscore + scriptLocation: inlineScript + inlineScript: + $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate ` + --organization azure-sdk ` + --project internal ` + --prefix ${{parameters.Prefix}}-pr ` + --devopspath "\${{parameters.Prefix}}\pr" ` + --path $(System.DefaultWorkingDirectory)/sdk ` + --endpoint Azure ` + --repository ${{parameters.Repository}} ` + --convention ci ` + --agentpool Hosted ` + --branch refs/heads/$(DefaultBranch) ` + --set-managed-variables ` + --debug ` + --no-schedule ` + ${{parameters.CIConventionOptions}} displayName: Create CI Pipelines for Private Repository - env: - PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat) - - script: > - $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate - --organization azure-sdk - --project internal - --prefix ${{parameters.Prefix}}-pr - --devopspath "\${{parameters.Prefix}}\pr" - --path $(System.DefaultWorkingDirectory)/sdk - --endpoint Azure - --repository ${{parameters.Repository}} - --convention up - --agentpool Hosted - --branch refs/heads/$(DefaultBranch) - --patvar PATVAR - --set-managed-variables - --debug - --no-schedule - ${{parameters.UPConventionOptions}} + - task: AzureCLI@2 + inputs: + azureSubscription: 'opensource-api-connection' + scriptType: pscore + scriptLocation: inlineScript + inlineScript: + $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate ` + --organization azure-sdk ` + --project internal ` + --prefix ${{parameters.Prefix}}-pr ` + --devopspath "\${{parameters.Prefix}}\pr" ` + --path $(System.DefaultWorkingDirectory)/sdk ` + --endpoint Azure ` + --repository ${{parameters.Repository}} ` + --convention up ` + --agentpool Hosted ` + --branch refs/heads/$(DefaultBranch) ` + --set-managed-variables ` + --debug ` + --no-schedule ` + ${{parameters.UPConventionOptions}} displayName: Create UP Pipelines for Private Repository - env: - PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat) - - script: > - $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate - --organization azure-sdk - --project internal - --prefix ${{parameters.Prefix}}-pr - --devopspath "\${{parameters.Prefix}}\pr" - --path $(System.DefaultWorkingDirectory)/sdk - --endpoint Azure - --repository ${{parameters.Repository}} - --convention tests - --agentpool Hosted - --branch refs/heads/$(DefaultBranch) - --patvar PATVAR - --set-managed-variables - --debug - --no-schedule - ${{parameters.TestsConventionOptions}} + - task: AzureCLI@2 + inputs: + azureSubscription: 'opensource-api-connection' + scriptType: pscore + scriptLocation: inlineScript + inlineScript: + $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate ` + --organization azure-sdk ` + --project internal ` + --prefix ${{parameters.Prefix}}-pr ` + --devopspath "\${{parameters.Prefix}}\pr" ` + --path $(System.DefaultWorkingDirectory)/sdk ` + --endpoint Azure ` + --repository ${{parameters.Repository}} ` + --convention tests ` + --agentpool Hosted ` + --branch refs/heads/$(DefaultBranch) ` + --set-managed-variables ` + --debug ` + --no-schedule ` + ${{parameters.TestsConventionOptions}} displayName: Create Live Test Pipelines for Private Repository condition: and(succeeded(), ne('${{parameters.TestsConventionOptions}}','')) - env: - PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat) diff --git a/eng/pipelines/pipeline-generation-single.yml b/eng/pipelines/pipeline-generation-single.yml index 303bed5a664..e3574c1d9f8 100644 --- a/eng/pipelines/pipeline-generation-single.yml +++ b/eng/pipelines/pipeline-generation-single.yml @@ -29,22 +29,23 @@ jobs: - script: | git clone --filter=blob:none --branch $(Branch) https://$(azuresdk-github-pat)@github.com/azure/$(RepositoryName) $(Pipeline.Workspace)/$(RepositoryName) displayName: 'Clone repository: $(RepositoryName)' - - script: > - $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate - --organization $(DevOpsOrg) - --project $(DevOpsProject) - --prefix $(Prefix) - --devopspath "$(DevOpsPath)" - --path $(PathFilter) - --endpoint Azure - --repository Azure/$(RepositoryName) - --convention $(PipelineConvention) - --agentpool Hosted - --branch refs/heads/$(Branch) - --patvar PATVAR - --debug - $(AdditionalOptions) + - task: AzureCLI@2 + inputs: + azureSubscription: 'opensource-api-connection' + scriptType: pscore + scriptLocation: inlineScript + inlineScript: + $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate ` + --organization $(DevOpsOrg) ` + --project $(DevOpsProject) ` + --prefix $(Prefix) ` + --devopspath "$(DevOpsPath)" ` + --path $(PathFilter) ` + --endpoint Azure ` + --repository Azure/$(RepositoryName) ` + --convention $(PipelineConvention) ` + --agentpool Hosted ` + --branch refs/heads/$(Branch) ` + --debug ` + $(AdditionalOptions) displayName: 'Generate pipeline' - env: - PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat) - diff --git a/eng/pipelines/pipeline-generation.yml b/eng/pipelines/pipeline-generation.yml index 7f9fa0a1992..f44c809806f 100644 --- a/eng/pipelines/pipeline-generation.yml +++ b/eng/pipelines/pipeline-generation.yml @@ -116,114 +116,131 @@ jobs: - template: /eng/common/pipelines/templates/steps/set-default-branch.yml parameters: WorkingDirectory: $(Pipeline.Workspace)/$(RepositoryName) - - script: > - $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate - --organization azure-sdk - --project public - --prefix $(Prefix) - --path $(Pipeline.Workspace)/$(RepositoryName)/sdk - --endpoint Azure - --repository Azure/$(RepositoryName) - --convention ci - --agentpool Hosted - --branch refs/heads/$(DefaultBranch) - --set-managed-variables - --patvar PATVAR - --debug + + - task: AzureCLI@2 + inputs: + azureSubscription: 'opensource-api-connection' + scriptType: pscore + scriptLocation: inlineScript + inlineScript: + $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate ` + --organization azure-sdk ` + --project public ` + --prefix $(Prefix) ` + --path $(Pipeline.Workspace)/$(RepositoryName)/sdk ` + --endpoint Azure ` + --repository Azure/$(RepositoryName) ` + --convention ci ` + --agentpool Hosted ` + --branch refs/heads/$(DefaultBranch) ` + --set-managed-variables ` + --debug ` displayName: 'Generate public pipelines for: $(RepositoryName)' - env: - PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat) - - script: > - $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate - --organization azure-sdk - --project internal - --prefix $(Prefix) - --path $(Pipeline.Workspace)/$(RepositoryName)/sdk - --endpoint Azure - --repository Azure/$(RepositoryName) - --convention up - --agentpool Hosted - --branch refs/heads/$(DefaultBranch) - --set-managed-variables - --patvar PATVAR - --debug - --variablegroups $(InternalVariableGroups) $(TestVariableGroups) + + - task: AzureCLI@2 + inputs: + azureSubscription: 'opensource-api-connection' + scriptType: pscore + scriptLocation: inlineScript + inlineScript: + $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate ` + --organization azure-sdk ` + --project internal ` + --prefix $(Prefix) ` + --path $(Pipeline.Workspace)/$(RepositoryName)/sdk ` + --endpoint Azure ` + --repository Azure/$(RepositoryName) ` + --convention up ` + --agentpool Hosted ` + --branch refs/heads/$(DefaultBranch) ` + --set-managed-variables ` + --debug ` + --variablegroups $(InternalVariableGroups) $(TestVariableGroups) displayName: 'Generate internal pipelines for: $(RepositoryName)' - env: - PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat) - - script: > - $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate - --organization azure-sdk - --project internal - --prefix $(Prefix) - --path $(Pipeline.Workspace)/$(RepositoryName)/sdk - --endpoint Azure - --repository Azure/$(RepositoryName) - --convention tests - --agentpool Hosted - --branch refs/heads/$(DefaultBranch) - --set-managed-variables - --patvar PATVAR - --debug - --variablegroups $(TestVariableGroups) + + - task: AzureCLI@2 + inputs: + azureSubscription: 'opensource-api-connection' + scriptType: pscore + scriptLocation: inlineScript + inlineScript: + $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate ` + --organization azure-sdk ` + --project internal ` + --prefix $(Prefix) ` + --path $(Pipeline.Workspace)/$(RepositoryName)/sdk ` + --endpoint Azure ` + --repository Azure/$(RepositoryName) ` + --convention tests ` + --agentpool Hosted ` + --branch refs/heads/$(DefaultBranch) ` + --set-managed-variables ` + --debug ` + --variablegroups $(TestVariableGroups) displayName: 'Generate test pipelines for: $(RepositoryName)' condition: and(succeeded(), ne(variables['TestVariableGroups'],'')) - env: - PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat) - - script: > - $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate - --organization azure-sdk - --project internal - --prefix $(Prefix) - --path $(Pipeline.Workspace)/$(RepositoryName)/sdk - --endpoint Azure - --repository Azure/$(RepositoryName) - --convention testsweekly - --agentpool Hosted - --branch refs/heads/$(DefaultBranch) - --set-managed-variables - --patvar PATVAR - --debug - --variablegroups $(TestVariableGroups) + + - task: AzureCLI@2 + inputs: + azureSubscription: 'opensource-api-connection' + scriptType: pscore + scriptLocation: inlineScript + inlineScript: + $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate ` + --organization azure-sdk ` + --project internal ` + --prefix $(Prefix) ` + --path $(Pipeline.Workspace)/$(RepositoryName)/sdk ` + --endpoint Azure ` + --repository Azure/$(RepositoryName) ` + --convention testsweekly ` + --agentpool Hosted ` + --branch refs/heads/$(DefaultBranch) ` + --set-managed-variables ` + --debug ` + --variablegroups $(TestVariableGroups) displayName: 'Generate weekly test pipelines (multi-cloud) for: $(RepositoryName)' condition: and(succeeded(), ne(variables['TestVariableGroups'],'')) - env: - PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat) - - script: > - $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate - --organization azure-sdk - --project internal - --prefix $(Prefix) - --path $(Pipeline.Workspace)/$(RepositoryName)/sdk - --endpoint Azure - --repository Azure/$(RepositoryName) - --convention upweekly - --agentpool Hosted - --branch refs/heads/$(DefaultBranch) - --set-managed-variables - --patvar PATVAR - --debug - --variablegroups $(InternalVariableGroups) $(TestVariableGroups) + + - task: AzureCLI@2 + inputs: + azureSubscription: 'opensource-api-connection' + scriptType: pscore + scriptLocation: inlineScript + inlineScript: + $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate ` + --organization azure-sdk ` + --project internal ` + --prefix $(Prefix) ` + --path $(Pipeline.Workspace)/$(RepositoryName)/sdk ` + --endpoint Azure ` + --repository Azure/$(RepositoryName) ` + --convention upweekly ` + --agentpool Hosted ` + --branch refs/heads/$(DefaultBranch) ` + --set-managed-variables ` + --debug ` + --variablegroups $(InternalVariableGroups) $(TestVariableGroups) displayName: 'Generate weekly unified test pipelines (multi-cloud) for: $(RepositoryName)' condition: and(succeeded(), ne(variables['GenerateUnifiedWeekly'],'')) - env: - PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat) - # - script: > - # $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate - # --organization azure-sdk - # --project internal - # --prefix $(Prefix)-pr - # --devopspath "\$(Prefix)\pr" - # --path $(Pipeline.Workspace)/$(RepositoryName)/sdk - # --endpoint Azure - # --repository Azure/$(RepositoryName)-pr - # --convention ci - # --agentpool Hosted - # --branch refs/heads/ $(DefaultBranch) - # --set-managed-variables - # --patvar PATVAR - # --debug + # - task: AzureCLI@2 + # inputs: + # azureSubscription: 'opensource-api-connection' + # scriptType: pscore + # scriptLocation: inlineScript + # inlineScript: + # $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate ` + # --organization azure-sdk ` + # --project internal ` + # --prefix $(Prefix)-pr ` + # --devopspath "\$(Prefix)\pr" ` + # --path $(Pipeline.Workspace)/$(RepositoryName)/sdk ` + # --endpoint Azure ` + # --repository Azure/$(RepositoryName)-pr ` + # --convention ci ` + # --agentpool Hosted ` + # --branch refs/heads/ $(DefaultBranch) ` + # --set-managed-variables ` + # --debug # displayName: 'Generate internal pipelines for: $(RepositoryName)-pr' - # env: - # PATVAR: $(azuresdk-azure-sdk-devops-pipeline-generation-pat) From 64a39f34400c045c7ac33436b91ac36649cba6d2 Mon Sep 17 00:00:00 2001 From: James Suplizio Date: Tue, 4 Jun 2024 10:08:10 -0700 Subject: [PATCH 2/3] Remove extra backtick on final argument and remove commented out, dead, task --- eng/pipelines/pipeline-generation.yml | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/eng/pipelines/pipeline-generation.yml b/eng/pipelines/pipeline-generation.yml index f44c809806f..2b1a70f682a 100644 --- a/eng/pipelines/pipeline-generation.yml +++ b/eng/pipelines/pipeline-generation.yml @@ -134,7 +134,7 @@ jobs: --agentpool Hosted ` --branch refs/heads/$(DefaultBranch) ` --set-managed-variables ` - --debug ` + --debug displayName: 'Generate public pipelines for: $(RepositoryName)' - task: AzureCLI@2 @@ -224,23 +224,3 @@ jobs: displayName: 'Generate weekly unified test pipelines (multi-cloud) for: $(RepositoryName)' condition: and(succeeded(), ne(variables['GenerateUnifiedWeekly'],'')) - # - task: AzureCLI@2 - # inputs: - # azureSubscription: 'opensource-api-connection' - # scriptType: pscore - # scriptLocation: inlineScript - # inlineScript: - # $(Pipeline.Workspace)/pipeline-generator/pipeline-generator generate ` - # --organization azure-sdk ` - # --project internal ` - # --prefix $(Prefix)-pr ` - # --devopspath "\$(Prefix)\pr" ` - # --path $(Pipeline.Workspace)/$(RepositoryName)/sdk ` - # --endpoint Azure ` - # --repository Azure/$(RepositoryName)-pr ` - # --convention ci ` - # --agentpool Hosted ` - # --branch refs/heads/ $(DefaultBranch) ` - # --set-managed-variables ` - # --debug - # displayName: 'Generate internal pipelines for: $(RepositoryName)-pr' From 54c70edac926993f76cde72c8b2c5b896d8dedba Mon Sep 17 00:00:00 2001 From: James Suplizio Date: Tue, 4 Jun 2024 13:30:37 -0700 Subject: [PATCH 3/3] update version of PipelineGenerator to install --- .../pipelines/templates/steps/install-pipeline-generation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/pipelines/templates/steps/install-pipeline-generation.yml b/eng/common/pipelines/templates/steps/install-pipeline-generation.yml index 8336a279035..9d857571c5d 100644 --- a/eng/common/pipelines/templates/steps/install-pipeline-generation.yml +++ b/eng/common/pipelines/templates/steps/install-pipeline-generation.yml @@ -9,7 +9,7 @@ steps: - script: > dotnet tool install Azure.Sdk.Tools.PipelineGenerator - --version 1.1.0-dev.20221220.1 + --version 1.1.0-dev.20240604.1 --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json --tool-path ${{parameters.ToolPath}} workingDirectory: $(Pipeline.Workspace)/pipeline-generator