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: |
- 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