@@ -32,6 +32,9 @@ Re-installs KoreBuild
3232. PARAMETER ConfigFile
3333The path to the configuration file that stores values. Defaults to korebuild.json.
3434
35+ . PARAMETER CI
36+ Sets up CI specific settings and variables.
37+
3538. PARAMETER PackageVersionPropsUrl
3639(optional) the url of the package versions props path containing dependency versions.
3740
@@ -61,8 +64,8 @@ in the file are overridden by command line parameters.
6164Example config file:
6265```json
6366{
64- "$schema": "https://raw.githubusercontent.com/aspnet/BuildTools/dev /tools/korebuild.schema.json",
65- "channel": "dev ",
67+ "$schema": "https://raw.githubusercontent.com/aspnet/BuildTools/master /tools/korebuild.schema.json",
68+ "channel": "master ",
6669 "toolsSource": "https://aspnetcore.blob.core.windows.net/buildtools"
6770}
6871```
8184 [Alias (' u' )]
8285 [switch ]$Update ,
8386 [switch ]$Reinstall ,
84- [string ]$ConfigFile ,
87+ [string ]$ConfigFile = $null ,
88+ [switch ]$CI ,
8589 [string ]$PackageVersionPropsUrl = $null ,
8690 [string ]$AccessTokenSuffix = $null ,
8791 [string ]$RestoreSources = $null ,
@@ -202,7 +206,7 @@ if (!$DotNetHome) {
202206 else { Join-Path $PSScriptRoot ' .dotnet' }
203207}
204208
205- if (! $Channel ) { $Channel = ' dev ' }
209+ if (! $Channel ) { $Channel = ' master ' }
206210if (! $ToolsSource ) { $ToolsSource = ' https://aspnetcore.blob.core.windows.net/buildtools' }
207211
208212if ($PackageVersionPropsUrl ) {
@@ -235,7 +239,7 @@ $korebuildPath = Get-KoreBuild
235239Import-Module - Force - Scope Local (Join-Path $korebuildPath ' KoreBuild.psd1' )
236240
237241try {
238- Set-KoreBuildSettings - ToolsSource $ToolsSource - DotNetHome $DotNetHome - RepoPath $Path - ConfigFile $ConfigFile
242+ Set-KoreBuildSettings - ToolsSource $ToolsSource - DotNetHome $DotNetHome - RepoPath $Path - ConfigFile $ConfigFile - CI: $CI
239243 Invoke-KoreBuildCommand $Command @MSBuildArguments
240244}
241245finally {
0 commit comments