From 51ca5ad938c742e6ff876ea1545b0712b130f9d1 Mon Sep 17 00:00:00 2001 From: Nikolche Kolev Date: Wed, 7 Dec 2022 11:32:50 -0800 Subject: [PATCH] Change OptProf git tag manual override to false (#4851) (#4964) Co-authored-by: Andy Zivkovic --- eng/pipelines/optprof.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eng/pipelines/optprof.yml b/eng/pipelines/optprof.yml index 8032ed88fca..f7641b9ad14 100644 --- a/eng/pipelines/optprof.yml +++ b/eng/pipelines/optprof.yml @@ -28,9 +28,9 @@ resources: parameters: # Whether or not commit should be tagged for manual deployments -- name: optEnableOptProfTagging +- name: CreateGitTagOnManualRun type: boolean - default: true + default: false # Whether or not to delete the test machines after the run completes. - name: testMachineCleanUpStrategy @@ -170,6 +170,6 @@ stages: - template: \steps\powershell\execute-script.yml@DartLabTemplates parameters: displayName: Create OptimizationInputs Tag in Repository - condition: or(and(succeeded(), in(variables['Build.Reason'], 'ResourceTrigger')), eq('${{parameters.optEnableOptProfTagging}}', 'true')) + condition: and(succeeded(), or(in(variables['Build.Reason'], 'ResourceTrigger'), eq('${{parameters.CreateGitTagOnManualRun}}', 'true'))) filePath: $(DartLab.Path)\Scripts\AzureDevOps\Repos\New-GitAnnotatedTag.ps1 arguments: -InstanceURL '$(System.CollectionUri)' -ProjectName '$(System.TeamProject)' -RepositoryName '$(Build.Repository.Name)' -CommitID '$(resources.pipeline.ComponentBuildUnderTest.sourceCommit)' -TagName '$(optDropName)' -JSON @{ releaseWebURL = "$(System.TeamFoundationCollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)" } -OAuthAccessToken (ConvertTo-SecureString '$(System.AccessToken)' -AsPlainText -Force)