Use BuildTools PackageVersionPropsUrl tooling (dotnet/core-setup#3433)
authorDavis Goodin <dagood@users.noreply.github.com>
Mon, 20 Nov 2017 21:36:54 +0000 (15:36 -0600)
committerGitHub <noreply@github.com>
Mon, 20 Nov 2017 21:36:54 +0000 (15:36 -0600)
All definitions need PB_PackageVersionPropsUrl to default to empty string, not undefined. If it were undefined, VSTS could leave in $(PB_PackageVersionPropsUrl) which would make the build fail when it fails to download it.

For Docker, map the environment variable on each run command.

For OSX/Windows, have VSTS set the environment variable by creating a definition variable.

Commit migrated from https://github.com/dotnet/core-setup/commit/4a5928c75fec89590d2f2d846465fa64db6be07d

src/installer/buildpipeline/Core-Setup-Linux-Arm-BT.json
src/installer/buildpipeline/Core-Setup-Linux-BT.json
src/installer/buildpipeline/Core-Setup-OSX-BT.json
src/installer/buildpipeline/Core-Setup-Windows-Arm-BT.json
src/installer/buildpipeline/Core-Setup-Windows-BT.json

index f03503b..6ce07e2 100644 (file)
       "allowOverride": true
     },
     "DockerCommonRunArgs": {
-      "value": "--name $(PB_DockerContainerName) -v \"$(PB_SourcesDirectory):$(PB_GitDirectory)\" -w=\"$(PB_GitDirectory)\" $(PB_DockerImageName)"
+      "value": "--name $(PB_DockerContainerName) -v \"$(PB_SourcesDirectory):$(PB_GitDirectory)\" -w=\"$(PB_GitDirectory)\" -e \"PACKAGEVERSIONPROPSURL=$(PB_PackageVersionPropsUrl)\" $(PB_DockerImageName)"
     },
     "PB_VsoRepoUrl": {
       "value": "--branch $(PB_Branch) https://$(PB_VsoAccountName):$(PB_VsoPassword)@devdiv.visualstudio.com/DevDiv/_git/DotNet-Core-Setup-Trusted"
     "PB_ChecksumAzureAccessToken": {
       "value": null,
       "isSecret": true
+    },
+    "PB_PackageVersionPropsUrl": {
+      "value": ""
     }
   },
   "demands": [
index 3a057bc..4a9b9c1 100644 (file)
       "allowOverride": true
     },
     "DockerCommonRunArgs": {
-      "value": "--name $(PB_DockerContainerName) -v \"$(PB_SourcesDirectory):$(PB_GitDirectory)\" -w=\"$(PB_GitDirectory)\" $(PB_DockerImageName)"
+      "value": "--name $(PB_DockerContainerName) -v \"$(PB_SourcesDirectory):$(PB_GitDirectory)\" -w=\"$(PB_GitDirectory)\" -e \"PACKAGEVERSIONPROPSURL=$(PB_PackageVersionPropsUrl)\" $(PB_DockerImageName)"
     },
     "PB_VsoRepoUrl": {
       "value": "--branch $(PB_Branch) https://$(PB_VsoAccountName):$(PB_VsoPassword)@devdiv.visualstudio.com/DevDiv/_git/DotNet-Core-Setup-Trusted"
     "PB_DebianId_ubuntu1710-x64": {
       "value": null,
       "isSecret": true
+    },
+    "PB_PackageVersionPropsUrl": {
+      "value": ""
     }
   },
   "demands": [
index 7e90bab..33ed156 100644 (file)
     },
     "PB_PortableBuild": {
       "value": "true"
+    },
+    "PB_PackageVersionPropsUrl": {
+      "value": ""
+    },
+    "PACKAGEVERSIONPROPSURL": {
+      "value": "$(PB_PackageVersionPropsUrl)"
     }
   },
   "demands": [
index aa84624..271300f 100644 (file)
     },
     "PB_BuildFullPlatformManifest": {
       "value": "false"
+    },
+    "PB_PackageVersionPropsUrl": {
+      "value": ""
+    },
+    "PACKAGEVERSIONPROPSURL": {
+      "value": "$(PB_PackageVersionPropsUrl)"
     }
   },
   "demands": [
index 441e3f9..4016cc7 100644 (file)
     },
     "TeamName": {
       "value": "DotNetCore"
+    },
+    "PB_PackageVersionPropsUrl": {
+      "value": ""
+    },
+    "PACKAGEVERSIONPROPSURL": {
+      "value": "$(PB_PackageVersionPropsUrl)"
     }
   },
   "demands": [