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)