summaryrefslogtreecommitdiff
path: root/eng
diff options
context:
space:
mode:
authordotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>2019-01-18 11:48:08 -0500
committerStephen Toub <stoub@microsoft.com>2019-01-18 11:48:08 -0500
commitec53bfdc54cf1b79730561c4a7f3c744090a400c (patch)
treea07741971ecc488549268bde8149d6f449f27906 /eng
parentf1fe9ff1ecb257d260d83ab30be112f77273c95d (diff)
downloadcoreclr-ec53bfdc54cf1b79730561c4a7f3c744090a400c.tar.gz
coreclr-ec53bfdc54cf1b79730561c4a7f3c744090a400c.tar.bz2
coreclr-ec53bfdc54cf1b79730561c4a7f3c744090a400c.zip
Update dependencies from dotnet/arcade (#22035)
* Update dependencies from https://github.com/dotnet/arcade build 20190116.1 This change updates the following dependencies - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19066.1 - Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19066.1 * Update dependencies from https://github.com/dotnet/arcade build 20190117.6 This change updates the following dependencies - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19067.6 - Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19067.6
Diffstat (limited to 'eng')
-rw-r--r--eng/Version.Details.xml8
-rw-r--r--eng/common/PublishBuildAssets.cmd2
-rw-r--r--eng/common/build.ps16
-rw-r--r--eng/common/sdk-task.ps174
4 files changed, 80 insertions, 10 deletions
diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml
index f96e823a43..ba2ee74f70 100644
--- a/eng/Version.Details.xml
+++ b/eng/Version.Details.xml
@@ -2,13 +2,13 @@
<Dependencies>
<ProductDependencies></ProductDependencies>
<ToolsetDependencies>
- <Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19065.6">
+ <Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="1.0.0-beta.19067.6">
<Uri>https://github.com/dotnet/arcade</Uri>
- <Sha>289a8e607ef2a7358c351ddf3d08056186d4e554</Sha>
+ <Sha>bed438c56afcd799b4de747291cf68815ae2f53b</Sha>
</Dependency>
- <Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="2.0.0-beta.19065.6">
+ <Dependency Name="Microsoft.DotNet.Helix.Sdk" Version="2.0.0-beta.19067.6">
<Uri>https://github.com/dotnet/arcade</Uri>
- <Sha>289a8e607ef2a7358c351ddf3d08056186d4e554</Sha>
+ <Sha>bed438c56afcd799b4de747291cf68815ae2f53b</Sha>
</Dependency>
</ToolsetDependencies>
</Dependencies>
diff --git a/eng/common/PublishBuildAssets.cmd b/eng/common/PublishBuildAssets.cmd
index ac629f00e1..3c6e4ff829 100644
--- a/eng/common/PublishBuildAssets.cmd
+++ b/eng/common/PublishBuildAssets.cmd
@@ -1,3 +1,3 @@
@echo off
-powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0Build.ps1""" -msbuildEngine dotnet -restore -execute -binaryLog /p:PublishBuildAssets=true /p:SdkTaskProjects=PublishBuildAssets.proj %*"
+powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0sdk-task.ps1""" -msbuildEngine dotnet -restore -projects PublishBuildAssets.proj -ci %*"
exit /b %ErrorLevel%
diff --git a/eng/common/build.ps1 b/eng/common/build.ps1
index 2f5e6052a8..8279dc7133 100644
--- a/eng/common/build.ps1
+++ b/eng/common/build.ps1
@@ -6,7 +6,6 @@ Param(
[string] $msbuildEngine = $null,
[bool] $warnAsError = $true,
[bool] $nodeReuse = $true,
- [switch] $execute,
[switch][Alias('r')]$restore,
[switch] $deployDeps,
[switch][Alias('b')]$build,
@@ -18,7 +17,6 @@ Param(
[switch] $sign,
[switch] $pack,
[switch] $publish,
- [switch] $publishBuildAssets,
[switch][Alias('bl')]$binaryLog,
[switch] $ci,
[switch] $prepareMachine,
@@ -48,7 +46,6 @@ function Print-Usage() {
Write-Host " -performanceTest Run all performance tests in the solution"
Write-Host " -sign Sign build outputs"
Write-Host " -publish Publish artifacts (e.g. symbols)"
- Write-Host " -publishBuildAssets Push assets to BAR"
Write-Host ""
Write-Host "Advanced settings:"
@@ -61,7 +58,6 @@ function Print-Usage() {
Write-Host "The above arguments can be shortened as much as to be unambiguous (e.g. -co for configuration, -t for test, etc.)."
}
-
function InitializeCustomToolset {
if (-not $restore) {
return
@@ -77,6 +73,7 @@ function InitializeCustomToolset {
function Build {
$toolsetBuildProj = InitializeToolset
InitializeCustomToolset
+
$bl = if ($binaryLog) { "/bl:" + (Join-Path $LogDir "Build.binlog") } else { "" }
if ($projects) {
@@ -102,7 +99,6 @@ function Build {
/p:PerformanceTest=$performanceTest `
/p:Sign=$sign `
/p:Publish=$publish `
- /p:Execute=$execute `
/p:ContinuousIntegrationBuild=$ci `
@properties
}
diff --git a/eng/common/sdk-task.ps1 b/eng/common/sdk-task.ps1
new file mode 100644
index 0000000000..9ba7530122
--- /dev/null
+++ b/eng/common/sdk-task.ps1
@@ -0,0 +1,74 @@
+[CmdletBinding(PositionalBinding=$false)]
+Param(
+ [string] $projects = "",
+ [string][Alias('v')]$verbosity = "minimal",
+ [string] $msbuildEngine = $null,
+ [bool] $warnAsError = $true,
+ [switch][Alias('bl')]$binaryLog,
+ [switch][Alias('r')]$restore,
+ [switch] $ci,
+ [switch] $prepareMachine,
+ [switch] $help,
+ [Parameter(ValueFromRemainingArguments=$true)][String[]]$properties
+)
+
+. $PSScriptRoot\tools.ps1
+
+function Print-Usage() {
+ Write-Host "Common settings:"
+ Write-Host " -v[erbosity] <value> Msbuild verbosity: q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]"
+ Write-Host " -[bl|binaryLog] Output binary log (short: -bl)"
+ Write-Host " -help Print help and exit"
+ Write-Host ""
+
+ Write-Host "Advanced settings:"
+ Write-Host " -restore Restore dependencies (short: -r)"
+ Write-Host " -projects <value> Semi-colon delimited list of sln/proj's from the Arcade sdk to build. Globbing is supported (*.sln)"
+ Write-Host " -ci Set when running on CI server"
+ Write-Host " -prepareMachine Prepare machine for CI run"
+ Write-Host " -msbuildEngine <value> Msbuild engine to use to run build ('dotnet', 'vs', or unspecified)."
+ Write-Host ""
+ Write-Host "Command line arguments not listed above are passed thru to msbuild."
+ Write-Host "The above arguments can be shortened as much as to be unambiguous (e.g. -co for configuration, -t for test, etc.)."
+}
+
+function Build {
+ $toolsetBuildProj = InitializeToolset
+
+ $toolsetBuildProj = Join-Path (Split-Path $toolsetBuildProj -Parent) "SdkTasks\SdkTask.proj"
+ $bl = if ($binaryLog) { "/bl:" + (Join-Path $LogDir "SdkTask.binlog") } else { "" }
+ MSBuild $toolsetBuildProj `
+ $bl `
+ /p:Projects=$projects `
+ /p:Restore=$restore `
+ /p:RepoRoot=$RepoRoot `
+ /p:ContinuousIntegrationBuild=$ci `
+ @properties
+}
+
+try {
+ if ($help -or (($null -ne $properties) -and ($properties.Contains("/help") -or $properties.Contains("/?")))) {
+ Print-Usage
+ exit 0
+ }
+
+ if ($projects -eq "") {
+ Write-Error "Missing required parameter '-projects <value>'"
+ Print-Usage
+ ExitWithExitCode 1
+ }
+
+ if ($ci) {
+ $binaryLog = $true
+ }
+
+ Build
+}
+catch {
+ Write-Host $_
+ Write-Host $_.Exception
+ Write-Host $_.ScriptStackTrace
+ ExitWithExitCode 1
+}
+
+ExitWithExitCode 0