Merge branch 'release/2.2'

This commit is contained in:
Nate McMaster 2018-09-26 11:10:00 -07:00
commit 3dc53456e2
No known key found for this signature in database
GPG Key ID: A778D9601BD78810
2 changed files with 13 additions and 9 deletions

View File

@ -19,10 +19,7 @@ phases:
inputs: inputs:
versionSpec: 10.x versionSpec: 10.x
- powershell: | - powershell: |
test/Cli.FunctionalTests/run-tests.ps1 ` test/Cli.FunctionalTests/run-tests.ps1 -ci -ProdConManifestUrl $env:PRODCONMANIFESTURL -TestRuntimeIdentifier $(Test.RuntimeIdentifier)
-ci `
-ProdConManifestUrl $env:PRODCONMANIFESTURL `
-TestRuntimeIdentifier $(Test.RuntimeIdentifier)
condition: ne(variables['PB_SkipTests'], 'true') condition: ne(variables['PB_SkipTests'], 'true')
displayName: Run E2E tests displayName: Run E2E tests
- task: PublishTestResults@2 - task: PublishTestResults@2

View File

@ -27,7 +27,7 @@ The RID of the platform running the tests. (Determined automatically if possible
.PARAMETER ProdConManifestUrl .PARAMETER ProdConManifestUrl
The prodcon build.xml file The prodcon build.xml file
.PARAMETER ProcConChannel .PARAMETER ProdConChannel
The prodcon channel to use if a build.xml file isn't set. The prodcon channel to use if a build.xml file isn't set.
#> #>
@ -35,12 +35,12 @@ param(
[switch]$ci, [switch]$ci,
$AssetRootUrl = $env:PB_ASSETROOTURL, $AssetRootUrl = $env:PB_ASSETROOTURL,
$AccessTokenSuffix = $env:PB_ACCESSTOKENSUFFIX, $AccessTokenSuffix = $env:PB_ACCESSTOKENSUFFIX,
$RestoreSources = $env:PB_RESTORESOURCES, $RestoreSources = $env:PB_RESTORESOURCE,
[ValidateSet('none', 'osx-x64', 'linux-x64', 'win-x64')] [ValidateSet('none', 'osx-x64', 'linux-x64', 'win-x64')]
$TestRuntimeIdentifier, $TestRuntimeIdentifier,
$HostRid, $HostRid,
$ProdConManifestUrl, $ProdConManifestUrl,
$ProcConChannel = 'master' $ProdConChannel = 'master'
) )
$ErrorActionPreference = 'Stop' $ErrorActionPreference = 'Stop'
@ -49,6 +49,9 @@ Set-StrictMode -Version 1
$repoRoot = Resolve-Path "$PSScriptRoot/../../" $repoRoot = Resolve-Path "$PSScriptRoot/../../"
Import-Module "$repoRoot/scripts/common.psm1" -Scope Local -Force Import-Module "$repoRoot/scripts/common.psm1" -Scope Local -Force
# This ID corresponds to the ProdCon build number
Write-Host "ProductBuildId: $env:PRODUCTBUILDID"
if (-not $HostRid) { if (-not $HostRid) {
if (Test-Path Variable:/IsCoreCLR) { if (Test-Path Variable:/IsCoreCLR) {
$HostRid = if ($IsWindows) { 'win-x64' } ` $HostRid = if ($IsWindows) { 'win-x64' } `
@ -86,9 +89,11 @@ try {
if (-not $ProdConManifestUrl) { if (-not $ProdConManifestUrl) {
Write-Host -ForegroundColor Magenta "Running tests for the latest ProdCon build" Write-Host -ForegroundColor Magenta "Running tests for the latest ProdCon build"
$ProdConManifestUrl = "https://raw.githubusercontent.com/dotnet/versions/master/build-info/dotnet/product/cli/$ProcConChannel/build.xml" $ProdConManifestUrl = "https://raw.githubusercontent.com/dotnet/versions/master/build-info/dotnet/product/cli/$ProdConChannel/build.xml"
} }
Write-Host "ProdConManifestUrl: $ProdConManifestUrl"
[xml] $prodConManifest = Invoke-RestMethod $ProdConManifestUrl [xml] $prodConManifest = Invoke-RestMethod $ProdConManifestUrl
$RestoreSources = $prodConManifest.OrchestratedBuild.Endpoint ` $RestoreSources = $prodConManifest.OrchestratedBuild.Endpoint `
@ -106,7 +111,9 @@ try {
Write-Error "Missing required parameter: AssetRootUrl" Write-Error "Missing required parameter: AssetRootUrl"
} }
$AssetRootUrl = $AssetRootUrl.TrimEnd('/') $AssetRootUrl = $AssetRootUrl.TrimEnd('/')
[xml] $cli = Invoke-RestMethod "$AssetRootUrl/orchestration-metadata/manifests/cli.xml${AccessTokenSuffix}" $cliMetadataUrl = "$AssetRootUrl/orchestration-metadata/manifests/cli.xml${AccessTokenSuffix}"
Write-Host "CliMetadataUrl: $cliMetadataUrl"
[xml] $cli = Invoke-RestMethod $cliMetadataUrl
$sdkVersion = $cli.Build.ProductVersion $sdkVersion = $cli.Build.ProductVersion
} }