correct perf-send-to-helix on windows (#42235)
authorOlivia Chen <51934529+ooooolivia@users.noreply.github.com>
Thu, 17 Sep 2020 00:32:22 +0000 (17:32 -0700)
committerGitHub <noreply@github.com>
Thu, 17 Sep 2020 00:32:22 +0000 (17:32 -0700)
* correct perf helix workitems on windows

* Will Revert: turn on PR validation

* change Agent.Os to runtime var

* remove sendparams condition

* test if macro syntax var case sensitive

* try expression for Agent.Os

* try $(Agent.Os)

* pass osGroup param

* revert pr trigger:

eng/common/templates/steps/perf-send-to-helix.yml
eng/pipelines/coreclr/templates/run-performance-job.yml
eng/pipelines/coreclr/templates/run-scenarios-job.yml

index 429a1a2..8427de5 100644 (file)
@@ -19,12 +19,13 @@ parameters:
   DisplayNamePrefix: 'Send job to Helix' # optional -- rename the beginning of the displayName of the steps in AzDO 
   condition: succeeded()                 # optional -- condition for step to execute; defaults to succeeded()
   continueOnError: false                 # optional -- determines whether to continue the build if the step errors; defaults to false
+  osGroup: ''                            # required -- operating system for the job
             
 
 steps:
 - template: /eng/pipelines/common/templates/runtimes/send-to-helix-inner-step.yml
   parameters:
-    osGroup: ${{ variables['Agent.Os'] }}
+    osGroup: ${{ parameters.osGroup }}
     sendParams: $(Build.SourcesDirectory)/eng/common/performance/${{ parameters.ProjectFile }} /restore /t:Test /bl:$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/SendToHelix.binlog
     displayName: ${{ parameters.DisplayNamePrefix }}
     condition: ${{ parameters.condition }}
index a3790ae..7cbead3 100644 (file)
@@ -128,6 +128,7 @@ jobs:
         WorkItemDirectory: '$(WorkItemDirectory)' # WorkItemDirectory can not be empty, so we send it some docs to keep it happy
         CorrelationPayloadDirectory: '$(PayloadDirectory)' # it gets checked out to a folder with shorter path than WorkItemDirectory so we can avoid file name too long exceptions
         ProjectFile: ${{ parameters.projectFile }}
+        osGroup: ${{ parameters.osGroup }}
     - task: PublishPipelineArtifact@1
       displayName: Publish Logs
       inputs:
index cd34ba2..84451af 100644 (file)
@@ -151,6 +151,7 @@ jobs:
         WorkItemDirectory: '$(WorkItemDirectory)' # contains scenario tools, shared python scripts, dotnet tool
         CorrelationPayloadDirectory: '$(PayloadDirectory)' # contains performance repo and built product
         ProjectFile: ${{ parameters.projectFile }}
+        osGroup: ${{ parameters.osGroup }}
 
     # publish logs
     - task: PublishPipelineArtifact@1