Skip to content

Commit 101899d

Browse files
committed
(build) update cake to 0.38.5
1 parent 41dfdd1 commit 101899d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.config/dotnet-tools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"isRoot": true,
44
"tools": {
55
"cake.tool": {
6-
"version": "0.37.0",
6+
"version": "0.38.5",
77
"commands": [
88
"dotnet-cake"
99
]

build/test.cake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ Task("UnitTest")
7373
if (parameters.IsRunningOnAzurePipeline)
7474
{
7575
if (testResultsFiles.Any()) {
76-
var data = new TFBuildPublishTestResultsData {
76+
var data = new AzurePipelinesPublishTestResultsData {
7777
TestResultsFiles = testResultsFiles.ToArray(),
7878
Platform = Context.Environment.Platform.Family.ToString(),
79-
TestRunner = TFTestRunnerType.NUnit
79+
TestRunner = AzurePipelinesTestRunnerType.NUnit
8080
};
81-
TFBuild.Commands.PublishTestResults(data);
81+
AzurePipelines.Commands.PublishTestResults(data);
8282
}
8383
}
8484
});

build/utils/utils.cake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static bool IsOnMainRepo(this ICakeContext context)
2323
}
2424
else if (buildSystem.IsRunningOnAzurePipelines || buildSystem.IsRunningOnAzurePipelinesHosted)
2525
{
26-
repositoryName = buildSystem.TFBuild.Environment.Repository.RepoName;
26+
repositoryName = buildSystem.AzurePipelines.Environment.Repository.RepoName;
2727
}
2828
else if (buildSystem.IsRunningOnGitHubActions)
2929
{
@@ -49,7 +49,7 @@ public static bool IsOnMainBranch(this ICakeContext context)
4949
}
5050
else if (buildSystem.IsRunningOnAzurePipelines || buildSystem.IsRunningOnAzurePipelinesHosted)
5151
{
52-
repositoryBranch = buildSystem.TFBuild.Environment.Repository.SourceBranchName;
52+
repositoryBranch = buildSystem.AzurePipelines.Environment.Repository.SourceBranchName;
5353
}
5454
else if (buildSystem.IsRunningOnGitHubActions)
5555
{

0 commit comments

Comments
 (0)