Skip to content

Commit 6dd5a7b

Browse files
author
Nate McMaster
committed
Merge branch release/2.1 into 2.1.4
2 parents e7447ca + a7a95c6 commit 6dd5a7b

File tree

7 files changed

+807
-11
lines changed

7 files changed

+807
-11
lines changed

Diff for: .vsts/builds/fast-pr-validation.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
trigger:
2+
- master
3+
- release/*
4+
5+
# See https://github.com/aspnet/BuildTools
6+
resources:
7+
repositories:
8+
- repository: buildtools
9+
type: github
10+
endpoint: DotNet-Bot GitHub Connection
11+
name: aspnet/BuildTools
12+
ref: refs/heads/release/2.1
13+
14+
phases:
15+
- template: .vsts-pipelines/templates/project-ci.yml@buildtools
16+
parameters:
17+
buildArgs: "/t:CheckUniverse"

Diff for: build/PackageArchive.targets

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
<Project>
2+
<Target Name="CheckForPreviousReleaseArchiveBaseline" BeforeTargets="CheckUniverse">
3+
<MSBuild Projects="@(ArchiveProjects)"
4+
Targets="CheckForPreviousReleaseArchiveBaseline" />
5+
</Target>
6+
7+
<ItemGroup>
8+
<ArchiveProjects Include="$(RepositoryRoot)src\PackageArchive\Archive.*\*.*proj" />
9+
</ItemGroup>
10+
211
<Target Name="BuildFallbackArchive" DependsOnTargets="ResolveRepoInfo;GeneratePropsFiles">
312

4-
<ItemGroup>
5-
<ArchiveProjects Include="$(RepositoryRoot)src\PackageArchive\Archive.*\*.*proj" />
6-
</ItemGroup>
713

814
<PropertyGroup>
915
<ArchiveBuildProps>

Diff for: run.ps1

+9-5
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ Re-installs KoreBuild
3232
.PARAMETER ConfigFile
3333
The 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.
6164
Example 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
```
@@ -81,7 +84,8 @@ param(
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' }
206210
if (!$ToolsSource) { $ToolsSource = 'https://aspnetcore.blob.core.windows.net/buildtools' }
207211

208212
if ($PackageVersionPropsUrl) {
@@ -235,7 +239,7 @@ $korebuildPath = Get-KoreBuild
235239
Import-Module -Force -Scope Local (Join-Path $korebuildPath 'KoreBuild.psd1')
236240

237241
try {
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
}
241245
finally {

Diff for: run.sh

+7-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ reinstall=false
1818
repo_path="$DIR"
1919
channel=''
2020
tools_source=''
21+
ci=false
2122
package_version_props_url=''
2223
asset_root_url=''
2324
access_token_suffix=''
@@ -48,6 +49,7 @@ __usage() {
4849
echo " --product-build-id <ID> The product build ID for correlation with orchestrated builds."
4950
echo " -u|--update Update to the latest KoreBuild even if the lock file is present."
5051
echo " --reinstall Reinstall KoreBuild."
52+
echo " --ci Apply CI specific settings and environment variables."
5153
echo ""
5254
echo "Description:"
5355
echo " This function will create a file \$DIR/korebuild-lock.txt. This lock file can be committed to source, but does not have to be."
@@ -216,6 +218,9 @@ while [[ $# -gt 0 ]]; do
216218
--reinstall|-Reinstall)
217219
reinstall=true
218220
;;
221+
--ci|-[Cc][Ii])
222+
ci=true
223+
;;
219224
--verbose|-Verbose)
220225
verbose=true
221226
;;
@@ -284,11 +289,11 @@ if [ ! -z "$product_build_id" ]; then
284289
msbuild_args[${#msbuild_args[*]}]="-p:DotNetProductBuildId=$product_build_id"
285290
fi
286291

287-
[ -z "$channel" ] && channel='dev'
292+
[ -z "$channel" ] && channel='master'
288293
[ -z "$tools_source" ] && tools_source='https://aspnetcore.blob.core.windows.net/buildtools'
289294

290295
get_korebuild
291-
set_korebuildsettings "$tools_source" "$DOTNET_HOME" "$repo_path" "$config_file"
296+
set_korebuildsettings "$tools_source" "$DOTNET_HOME" "$repo_path" "$config_file" "$ci"
292297

293298
# This incantation avoids unbound variable issues if msbuild_args is empty
294299
# https://stackoverflow.com/questions/7577052/bash-empty-array-expansion-with-set-u

0 commit comments

Comments
 (0)