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
"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": [
"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": [
},
"PB_PortableBuild": {
"value": "true"
+ },
+ "PB_PackageVersionPropsUrl": {
+ "value": ""
+ },
+ "PACKAGEVERSIONPROPSURL": {
+ "value": "$(PB_PackageVersionPropsUrl)"
}
},
"demands": [
},
"PB_BuildFullPlatformManifest": {
"value": "false"
+ },
+ "PB_PackageVersionPropsUrl": {
+ "value": ""
+ },
+ "PACKAGEVERSIONPROPSURL": {
+ "value": "$(PB_PackageVersionPropsUrl)"
}
},
"demands": [
},
"TeamName": {
"value": "DotNetCore"
+ },
+ "PB_PackageVersionPropsUrl": {
+ "value": ""
+ },
+ "PACKAGEVERSIONPROPSURL": {
+ "value": "$(PB_PackageVersionPropsUrl)"
}
},
"demands": [