Fix for runtime-live-build break per Santi's suggestion (#31999)
authorTomáš Rylek <trylek@microsoft.com>
Sun, 9 Feb 2020 20:52:31 +0000 (21:52 +0100)
committerGitHub <noreply@github.com>
Sun, 9 Feb 2020 20:52:31 +0000 (21:52 +0100)
eng/pipelines/common/global-build-job.yml

index 89f8f92..b6c357f 100644 (file)
@@ -19,10 +19,18 @@ jobs:
     pool: ${{ parameters.pool }}
     container: ${{ parameters.container }}
     timeoutInMinutes: ${{ parameters.timeoutInMinutes }}
-    variables: ${{ parameters.variables }}
     workspace:
       clean: all
 
+    variables:
+    - ${{ each variable in parameters.variables }}:
+      - ${{insert}}: ${{ variable }}
+    - name: noWarnAsErrorArg
+      value: ''
+    - ${{ if eq(parameters.osGroup, 'Windows_NT') }}:
+      - name: noWarnAsErrorArg
+        value: -warnAsError:0
+
     steps:
     - ${{ if eq(parameters.osGroup, 'OSX') }}:
       - script: |
@@ -37,7 +45,7 @@ jobs:
     - template: /eng/pipelines/common/clone-checkout-bundle-step.yml
 
     # Build
-    - script: $(Build.SourcesDirectory)$(dir)build$(scriptExt) -ci -arch ${{ parameters.archType }} ${{ parameters.buildArgs }} 
+    - script: $(Build.SourcesDirectory)$(dir)build$(scriptExt) -ci -arch ${{ parameters.archType }} $(noWarnAsErrorArg) ${{ parameters.buildArgs }}
       displayName: Build product
 
     - task: PublishBuildArtifacts@1