rename "buildArch" to "BUILD_ARCH"

Co-authored-by: Amin Yahyaabadi <aminyahyaabadi74@gmail.com>
This commit is contained in:
Amin Yahyaabadi 2020-09-10 23:28:43 -05:00
parent 19b5177396
commit 8b05ca5c7d
2 changed files with 4 additions and 12 deletions

View File

@ -28,14 +28,6 @@ steps:
- script: npm install --global npm@6.9.0
displayName: Update npm
# Use Azure Syntax to set env variables for all shells and steps
- pwsh: |
if ($env:AGENT_OS -eq "Windows_NT") {
$env:BUILD_ARCH=$env:buildArch
echo "##vso[task.setvariable variable=BUILD_ARCH]$env:BUILD_ARCH"
}
displayName: Setting globally used env variables
# Windows Specific
- task: UsePythonVersion@0
inputs:

View File

@ -6,9 +6,9 @@ jobs:
maxParallel: 2
matrix:
x64:
buildArch: x64
BUILD_ARCH: x64
x86:
buildArch: x86
BUILD_ARCH: x86
pool:
vmImage: vs2017-win2016
@ -30,7 +30,7 @@ jobs:
- script: node script\vsts\windows-run.js script\lint.cmd
env:
BUILD_ARCH: $(buildArch)
BUILD_ARCH: $(BUILD_ARCH)
displayName: Run linter
- template: templates/build.yml
@ -46,7 +46,7 @@ jobs:
}
echo "##vso[task.setvariable variable=FileID]$env:FileID" # Azure syntax
env:
BUILD_ARCH: $(buildArch)
BUILD_ARCH: $(BUILD_ARCH)
displayName: Set FileID based on the arch
- template: templates/publish.yml