Skip to content

Commit e81f141

Browse files
committed
Merge branch 'release/0.33.0' into main
2 parents 49a7c51 + 2fc1aba commit e81f141

File tree

244 files changed

+6267
-1103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

244 files changed

+6267
-1103
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Cake (C# Make) is a build automation system with a C# DSL to do things like comp
2424
| Bitrise | MacOS | ![Bitrise Build Status](https://app.bitrise.io/app/7a9d707b00881436/status.svg?token=m8zsF3tNONLaF03eHU-Ftg&branch=develop) | ![Build Status](https://app.bitrise.io/app/804b431c1f27e0a0/status.svg?token=qKosHEaJAJEqzZcq4s5WRg&branch=develop) |
2525
| Bitrise | Linux | ![Bitrise Build Status](https://app.bitrise.io/app/b811c91a26b1ea80/status.svg?token=zdwab0niOTRF4p3HcFYaxQ&branch=develop) | ![Build Status](https://app.bitrise.io/app/5a406f34f22113c6/status.svg?token=TQPbsmA9yP-iJOhzunIP4w&branch=develop) |
2626
| MyGet Build Services | Windows | [![MyGet Build Status](https://www.myget.org/BuildSource/Badge/cake-myget-build-service?identifier=53513546-050e-45de-9500-f161c99df6e2)](https://www.myget.org/) |   |
27-
| Bitbucket Pipelines | Linux | [![Build Status](https://cakebitbucketpipelinesshield.azurewebsites.net/status/cakebuild/cake-integration-tests/develop)](https://cakebitbucketpipelinesshield.azurewebsites.net/url/cakebuild/cake-integration-tests/develop) | [![Build Status](https://cakebitbucketpipelinesshield.azurewebsites.net/status/cakebuild/cake-integration-tests/IntegrationTests_develop)](https://cakebitbucketpipelinesshield.azurewebsites.net/url/cakebuild/cake-integration-tests/IntegrationTests_develop) |
27+
| Bitbucket Pipelines | Linux | [![Build Status](https://cakebitbucketpipelinesshield.azurewebsites.net/status/cakebuild/cake-integration-tests/develop)](https://cakebitbucketpipelinesshield.azurewebsites.net/url/cakebuild/cake-integration-tests/develop) | |
2828
| GitLab | Linux | [![build status](https://gitlab.com/cake-build/cake/badges/develop/build.svg)](https://gitlab.com/cake-build/cake/builds) |   |
2929

3030
## Code Coverage

ReleaseNotes.md

Lines changed: 53 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
1+
### New in 0.33.0 (Released 2019/04/01)
2+
3+
* 2514 Add additional report types for ReportGenerator
4+
* 2130 Add exceptions thrown to TaskTeardownContext
5+
* 2456 Add logging aliases to override the log verbosity
6+
* 2453 Unify pull request status across providers
7+
* 2440 Add EnvironmentVariable alias
8+
* 2400 Add globber pattern support to the #load directive
9+
* 2504 Update .NET Core SDK 2.1.505
10+
* 2487 Warn and skip code gen for duplicate aliases
11+
* 2481 FilePath and DirectoryPath implicit conversions should return null when passed null
12+
* 2473 ParseAssemblyInfo does not support .NET Core generated assembly info
13+
* 2468 DotNet commands do not respect the verbosity
14+
* 2439 HtmlInline_AzurePipelines and MHtml shares the same numeric value
15+
* 2432 Azure Pipelines build system not recognized with non-Windows jobs
16+
* 2088 VSWhere -requires and -products argument values are quoted but VSWhere doesn't support multiple values in quotes
17+
* 2507 Cake.CoreCLR can't handle whitespace in path
18+
* 2491 Add additional Azure DevOps (TFBuild) properties
19+
* 2484 Octopus Deploy 2019.1 and Spaces feature
20+
* 2478 Lock file arguments for NuGet and dotnet restore
21+
* 2474 TeamCityProvider.BuildProblem method should conform to TeamCity API
22+
* 2472 Expose ICakeConfiguration (or specific values like tools path) on context
23+
* 2465 Roundhouse dotnet tool does not run
24+
* 2463 DoesForEach don't support data context for items functions
25+
* 2462 Added unit tests for Cake.Core
26+
* 2459 Add MSBuildPath to NuGetRestoreSettings
27+
* 2449 ARM64 missing from MSBuild target platform
28+
* 2445 Add OnError
29+
* 2433 NugetRestore still using msbuild 15
30+
* 2429 Add provider name to BuildSystem
31+
* 2415 Add support for MSBuild options to enable RestoreLockedMode
32+
* 2393 MethodAliasGenerator doesn't generate parameter attributes
33+
* 2345 Allow NuGetRestoreSettings to opt out of setting -NonInteractive
34+
* 2270 Allow to listen and modify redirected standard output of a process
35+
* 2141 Add Verbosity property to GitVersionSettings
36+
* 2124 Add Support for IEnumerable tokens on TextTransformationExtensions
37+
* 2087 Include more detailed exception information when Exception is AggregateException
38+
* 2026 Support for additional SignTool flags
39+
* 2019 Clean up some parser tests
40+
* 1384 Enhancement: Add support for filtering files in Globbing alias
41+
* 820 Log tools command-line at higher log level (preferably default)
42+
* 2512 TFBuildPublishCodeCoverageData xml comments minor typo
43+
* 2025 The tool path for MSpec needs to be changed in the documentation
44+
145
### New in 0.32.1 (Released 2019/01/04)
246

347
* 2426 Chocolatey pack regression in Cake 0.32.0
@@ -81,7 +125,7 @@
81125

82126
* 2140 DotNetCorePublish does not respect SelfContained DotNetCorePublishSettings property.
83127
* 2203 Add Octopus Deploy Promote release support.
84-
* 2095 Add "--skipnontestassemblies" funcionality to CAKE's NUnit3Settings as it exists in original nunit3 test runner.
128+
* 2095 Add "--skipnontestassemblies" funcionality to Cake's NUnit3Settings as it exists in original NUnit 3 test runner.
85129
* 2094 Add support for executing a single task without dependencies.
86130
* 2196 NuGet Repository information not settable in NuGet Pack.
87131
* 2185 Try to find vswhere.exe on the system if the tool is not registered.
@@ -118,13 +162,13 @@
118162
### New in 0.27.0 (Released 2018/04/19)
119163

120164
* 2078 Support expand environment variables in script pre-processor directives
121-
* 2047 Specify version during Nuget Updating
165+
* 2047 Specify version during NuGet Updating
122166
* 2005 Add entries for Setup/Teardown in report
123167
* 1908 Octopus Deploy tool does not support list-deployments call for octo.exe
124168
* 2116 Loading Newtonsoft.Json in Cake.CoreCLR throws during assembly loading
125169
* 2084 Cake does not load dependencies in correct order
126170
* 2082 Investigate NuGet local V3 cache
127-
* 2081 Possibility to override default nuget sources
171+
* 2081 Possibility to override default NuGet sources
128172
* 2079 Default sources not loaded if nuget_source is empty
129173
* 2119 DotNetCore Publish misses Force / Self contained / Sources settings
130174
* 2113 Error when loading tools without internet connection
@@ -187,7 +231,7 @@
187231
* 1943 Chocolatey package dependencies cannot be set using the ChocolateyPackSettings
188232
* 1936 Move to signing service v2
189233
* 1931 Allow passing a nuget.config as environment variable or in cake.config
190-
* 1924 Set UserAgent for in process nuget
234+
* 1924 Set UserAgent for in-process NuGet
191235
* 1922 GitVersion is missing AssemblySemFileVer
192236
* 1912 Support for DotCover Process Filter
193237
* 1910 MSBuild property values should escape carriage return and line feed
@@ -208,7 +252,7 @@
208252
* 1853 The "using static" directive doesn't compile
209253
* 1843 NuGetContentResolver should not return ref assemblies.
210254
* 1842 Params in URI pre-processor directives are case sensitive
211-
* 1838 Dependencies are installed but have no references added when using LoadDependencies=true with in process nuget client
255+
* 1838 Dependencies are installed but have no references added when using LoadDependencies=true with in process NuGet client
212256
* 1831 CleanDirectories Throws NullReferenceException When Token Is Null
213257
* 1815 Exception Message should be shown rather than "One or more errors occurred."
214258
* 1404 MsBuildSettings.WithProperty does not escape values
@@ -277,7 +321,7 @@
277321
* 1787 Add opt-out config information to assembly version verification error message
278322
* 1780 Fix typo in version.cake
279323
* 1727 Incorrect documentation for XmlPeek Alias
280-
* 1700 Update nuget license url
324+
* 1700 Update NuGet license url
281325
* 1525 Updated examples for DotNetCoreTest
282326

283327
### New in 0.21.1 (Released 2017/07/15)
@@ -637,7 +681,7 @@
637681
* Add DotCover Cover support
638682
* Add SpecFlow support
639683
* Add Jenkins CI build system support
640-
* Use V3 Nuget in bootstrapper
684+
* Use V3 NuGet in bootstrapper
641685
* Remove logging from task setup/teardown.
642686
* Update ReleaseNotes.md
643687
* Removed year from © in readme
@@ -664,7 +708,7 @@
664708
* Replace #if !UNIX with [WindowsFact]
665709
* Don't show delegating tasks in summary
666710
* Task Summary should include skipped tasks
667-
* Support for nuget packing of project files
711+
* Support for NuGet packing of project files
668712
* Add method to get relative paths (for paths)
669713
* Full Build/Publish Automation for Cake
670714
* Add GitVersion into build.cake
@@ -724,7 +768,7 @@
724768
* Got support for .cake files in GitHub.
725769
* Created a Visual Studio Code extension for Cake.
726770
* Created a VSTS extension for Cake.
727-
* Fixed issue with external nugets used directly via #addin directive.
771+
* Fixed issue with external NuGet packages used directly via #addin directive.
728772
* DupFinder: Added ability to fail the build on detected issues.
729773
* InspectCode: Added ability to fail the build on detected issues.
730774
* TextTransform now handles Regex special characters.

build.cake

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#addin "nuget:https://api.nuget.org/v3/index.json?package=Cake.Gitter&version=0.10.0"
88

99
// Install tools.
10-
#tool "nuget:https://api.nuget.org/v3/index.json?package=gitreleasemanager&version=0.7.1"
1110
#tool "nuget:https://api.nuget.org/v3/index.json?package=coveralls.io&version=1.4.2"
1211
#tool "nuget:https://api.nuget.org/v3/index.json?package=OpenCover&version=4.6.519"
1312
#tool "nuget:https://api.nuget.org/v3/index.json?package=ReportGenerator&version=4.0.4"
@@ -16,6 +15,7 @@
1615
// Install .NET Core Global tools.
1716
#tool "dotnet:https://api.nuget.org/v3/index.json?package=GitVersion.Tool&version=4.0.1-beta1-58"
1817
#tool "dotnet:https://api.nuget.org/v3/index.json?package=SignClient&version=1.0.82"
18+
#tool "dotnet:https://api.nuget.org/v3/index.json?package=GitReleaseManager.Tool&version=0.8.0"
1919

2020
// Load other scripts.
2121
#load "./build/parameters.cake"
@@ -250,7 +250,8 @@ Task("Validate-Version")
250250
fullFxExe,
251251
new ProcessSettings {
252252
Arguments = "--version",
253-
RedirectStandardOutput = true
253+
RedirectStandardOutput = true,
254+
WorkingDirectory = parameters.Paths.Directories.ArtifactsBinFullFx
254255
},
255256
out fullFxOutput
256257
);
@@ -261,7 +262,8 @@ Task("Validate-Version")
261262
"dotnet",
262263
new ProcessSettings {
263264
Arguments = $"\"{coreFxExe}\" --version",
264-
RedirectStandardOutput = true
265+
RedirectStandardOutput = true,
266+
WorkingDirectory = parameters.Paths.Directories.ArtifactsBinNetCore
265267
},
266268
out coreFxOutput
267269
);
@@ -314,7 +316,7 @@ Task("Create-Chocolatey-Packages")
314316
ChocolateyPack(package.NuspecPath, new ChocolateyPackSettings {
315317
Version = parameters.Version.SemVersion,
316318
ReleaseNotes = parameters.ReleaseNotes.Notes.ToArray(),
317-
OutputDirectory = parameters.Paths.Directories.NugetRoot,
319+
OutputDirectory = parameters.Paths.Directories.NuGetRoot,
318320
Files = (GetFiles(netFxFullArtifactPath + "/*.*") + GetFiles("./nuspec/*.txt") + GetFiles("./LICENSE"))
319321
.Select(file=>"../" + file.FullPath.Substring(curDirLength))
320322
.Select(file=> new ChocolateyNuSpecContent { Source = file })
@@ -339,7 +341,7 @@ Task("Create-NuGet-Packages")
339341

340342
DotNetCorePack(project.FullPath, new DotNetCorePackSettings {
341343
Configuration = parameters.Configuration,
342-
OutputDirectory = parameters.Paths.Directories.NugetRoot,
344+
OutputDirectory = parameters.Paths.Directories.NuGetRoot,
343345
NoBuild = true,
344346
NoRestore = true,
345347
IncludeSymbols = true,
@@ -352,7 +354,7 @@ Task("Create-NuGet-Packages")
352354
Version = parameters.Version.SemVersion,
353355
ReleaseNotes = parameters.ReleaseNotes.Notes.ToArray(),
354356
BasePath = parameters.Paths.Directories.ArtifactsBinFullFx,
355-
OutputDirectory = parameters.Paths.Directories.NugetRoot,
357+
OutputDirectory = parameters.Paths.Directories.NuGetRoot,
356358
Symbols = true,
357359
NoPackageAnalysis = true
358360
});
@@ -365,7 +367,7 @@ Task("Create-NuGet-Packages")
365367
Version = parameters.Version.SemVersion,
366368
ReleaseNotes = parameters.ReleaseNotes.Notes.ToArray(),
367369
BasePath = netFxFullArtifactPath,
368-
OutputDirectory = parameters.Paths.Directories.NugetRoot,
370+
OutputDirectory = parameters.Paths.Directories.NuGetRoot,
369371
Symbols = false,
370372
NoPackageAnalysis = true,
371373
Files = GetFiles(netFxFullArtifactPath + "/*")
@@ -379,7 +381,7 @@ Task("Create-NuGet-Packages")
379381
Version = parameters.Version.SemVersion,
380382
ReleaseNotes = parameters.ReleaseNotes.Notes.ToArray(),
381383
BasePath = parameters.Paths.Directories.ArtifactsBinNetCore,
382-
OutputDirectory = parameters.Paths.Directories.NugetRoot,
384+
OutputDirectory = parameters.Paths.Directories.NuGetRoot,
383385
Symbols = true,
384386
NoPackageAnalysis = true
385387
});
@@ -392,7 +394,7 @@ Task("Create-NuGet-Packages")
392394
Version = parameters.Version.SemVersion,
393395
ReleaseNotes = parameters.ReleaseNotes.Notes.ToArray(),
394396
BasePath = netCoreFullArtifactPath,
395-
OutputDirectory = parameters.Paths.Directories.NugetRoot,
397+
OutputDirectory = parameters.Paths.Directories.NuGetRoot,
396398
Symbols = false,
397399
NoPackageAnalysis = true,
398400
Files = GetFiles(netCoreFullArtifactPath + "/**/*")
@@ -403,7 +405,7 @@ Task("Create-NuGet-Packages")
403405

404406
DotNetCorePack("./src/Cake/Cake.Tool.csproj", new DotNetCorePackSettings {
405407
Configuration = parameters.Configuration,
406-
OutputDirectory = parameters.Paths.Directories.NugetRoot,
408+
OutputDirectory = parameters.Paths.Directories.NuGetRoot,
407409
IncludeSymbols = true,
408410
MSBuildSettings = msBuildSettings
409411
});
@@ -433,7 +435,7 @@ Task("Sign-Binaries")
433435
var filter = File("./signclient.filter");
434436

435437
// Get the files to sign.
436-
var files = GetFiles(string.Concat(parameters.Paths.Directories.NugetRoot, "/", "*.nupkg"))
438+
var files = GetFiles(string.Concat(parameters.Paths.Directories.NuGetRoot, "/", "*.nupkg"))
437439
+ parameters.Paths.Files.ZipArtifactPathDesktop
438440
+ parameters.Paths.Files.ZipArtifactPathCoreClr;
439441

@@ -471,7 +473,7 @@ Task("Upload-AppVeyor-Artifacts")
471473
{
472474
AppVeyor.UploadArtifact(parameters.Paths.Files.ZipArtifactPathDesktop);
473475
AppVeyor.UploadArtifact(parameters.Paths.Files.ZipArtifactPathCoreClr);
474-
foreach(var package in GetFiles(parameters.Paths.Directories.NugetRoot + "/*"))
476+
foreach(var package in GetFiles(parameters.Paths.Directories.NuGetRoot + "/*"))
475477
{
476478
AppVeyor.UploadArtifact(package);
477479
}
@@ -542,7 +544,7 @@ Task("Publish-NuGet")
542544
throw new InvalidOperationException("Could not resolve NuGet API url.");
543545
}
544546

545-
foreach(var package in parameters.Packages.Nuget)
547+
foreach(var package in parameters.Packages.NuGet)
546548
{
547549
// Push the package.
548550
NuGetPush(package.PackagePath, new NuGetPushSettings {

build.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env bash
2-
CAKE_VERSION=0.31.0
3-
DOTNET_VERSION=2.1.502
2+
CAKE_VERSION=0.32.1
3+
DOTNET_VERSION=2.1.505

build/packages.cake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
public class BuildPackages
22
{
33
public ICollection<BuildPackage> All { get; private set; }
4-
public ICollection<BuildPackage> Nuget { get; private set; }
4+
public ICollection<BuildPackage> NuGet { get; private set; }
55
public ICollection<BuildPackage> Chocolatey { get; private set; }
66

77
public static BuildPackages GetPackages(
@@ -10,14 +10,14 @@ public class BuildPackages
1010
string[] packageIds,
1111
string[] chocolateyPackageIds)
1212
{
13-
var toNugetPackage = BuildPackage(nugetRooPath, semVersion);
13+
var toNuGetPackage = BuildPackage(nugetRooPath, semVersion);
1414
var toChocolateyPackage = BuildPackage(nugetRooPath, semVersion, isChocolateyPackage: true);
15-
var nugetPackages = packageIds.Select(toNugetPackage).ToArray();
15+
var nugetPackages = packageIds.Select(toNuGetPackage).ToArray();
1616
var chocolateyPackages = chocolateyPackageIds.Select(toChocolateyPackage).ToArray();
1717

1818
return new BuildPackages {
1919
All = nugetPackages.Union(chocolateyPackages).ToArray(),
20-
Nuget = nugetPackages,
20+
NuGet = nugetPackages,
2121
Chocolatey = chocolateyPackages
2222
};
2323
}

build/parameters.cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public class BuildParameters
7474
Paths = BuildPaths.GetPaths(context, Configuration, Version.SemVersion);
7575

7676
Packages = BuildPackages.GetPackages(
77-
Paths.Directories.NugetRoot,
77+
Paths.Directories.NuGetRoot,
7878
Version.SemVersion,
7979
new [] { "Cake", "Cake.Core", "Cake.Common", "Cake.Testing", "Cake.CoreCLR", "Cake.NuGet", "Cake.Tool" },
8080
new [] { "cake.portable" });

build/paths.cake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public class BuildDirectories
8787
{
8888
public DirectoryPath Artifacts { get; }
8989
public DirectoryPath TestResults { get; }
90-
public DirectoryPath NugetRoot { get; }
90+
public DirectoryPath NuGetRoot { get; }
9191
public DirectoryPath ArtifactsBin { get; }
9292
public DirectoryPath ArtifactsBinFullFx { get; }
9393
public DirectoryPath ArtifactsBinNetCore { get; }
@@ -108,7 +108,7 @@ public class BuildDirectories
108108
{
109109
Artifacts = artifactsDir;
110110
TestResults = testResultsDir;
111-
NugetRoot = nugetRoot;
111+
NuGetRoot = nugetRoot;
112112
ArtifactsBin = artifactsBinDir;
113113
ArtifactsBinFullFx = artifactsBinFullFx;
114114
ArtifactsBinNetCore = artifactsBinNetCore;
@@ -117,7 +117,7 @@ public class BuildDirectories
117117
ToClean = new[] {
118118
Artifacts,
119119
TestResults,
120-
NugetRoot,
120+
NuGetRoot,
121121
ArtifactsBin,
122122
ArtifactsBinFullFx,
123123
ArtifactsBinNetCore,

build/version.cake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public class BuildVersion
1717
string semVersion = null;
1818
string milestone = null;
1919

20-
if (context.IsRunningOnWindows() && !parameters.SkipGitVersion)
20+
if (!parameters.SkipGitVersion)
2121
{
2222
context.Information("Calculating Semantic Version");
2323
if (!parameters.IsLocalBuild || parameters.IsPublishBuild || parameters.IsReleaseBuild)

global.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"src"
44
],
55
"sdk": {
6-
"version": "2.1.502"
6+
"version": "2.1.505"
77
}
88
}

src/Cake.Common.Tests/Fixtures/Build/BitbucketPipelinesInfoFixture.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ public BitbucketPipelinesInfoFixture()
2222
Environment.GetEnvironmentVariable("BITBUCKET_REPO_OWNER").Returns("cakebuild");
2323
Environment.GetEnvironmentVariable("BITBUCKET_BRANCH").Returns("develop");
2424
Environment.GetEnvironmentVariable("BITBUCKET_TAG").Returns("BitbucketPipelines");
25+
26+
// BitbucketPipelines PullRequestInfo
27+
Environment.GetEnvironmentVariable("BITBUCKET_PR_ID").Returns("1");
2528
}
2629

2730
public BitbucketPipelinesEnvironmentInfo CreateEnvironmentInfo()
@@ -33,5 +36,10 @@ public BitbucketPipelinesRepositoryInfo CreateRepositoryInfo()
3336
{
3437
return new BitbucketPipelinesRepositoryInfo(Environment);
3538
}
39+
40+
public BitbucketPipelinesPullRequestInfo CreatePullRequestInfo()
41+
{
42+
return new BitbucketPipelinesPullRequestInfo(Environment);
43+
}
3644
}
3745
}

0 commit comments

Comments
 (0)