Skip to content
This repository was archived by the owner on Nov 19, 2019. It is now read-only.

Commit c8eb5e4

Browse files
committed
Merge branch 'hotfix/0.23.3'
2 parents 80b7096 + d8d6093 commit c8eb5e4

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [vNext]
88

9+
## [0.23.3] / 2019-11-02
10+
- Fixed separator in Azure Pipelines service messages
11+
912
## [0.23.2] / 2019-11-02
1013
- Fixed ensuring of existing directory for generation of configuration files
1114
- Fixed packaging of `MSBuildTaskRunner` in `Nuke.Common`
@@ -449,7 +452,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
449452
- Added CLT tasks for Git
450453
- Fixed background color in console output
451454

452-
[vNext]: https://github.com/nuke-build/common/compare/0.23.2...HEAD
455+
[vNext]: https://github.com/nuke-build/common/compare/0.23.3...HEAD
456+
[0.23.3]: https://github.com/nuke-build/common/compare/0.23.2...0.23.3
453457
[0.23.2]: https://github.com/nuke-build/common/compare/0.23.1...0.23.2
454458
[0.23.1]: https://github.com/nuke-build/common/compare/0.23.0...0.23.1
455459
[0.23.0]: https://github.com/nuke-build/common/compare/0.22.2...0.23.0

build/Build.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,9 @@ from framework in project.GetTargetFrameworks()
195195

196196
OutputDirectory.GlobFiles("*.trx")
197197
.ForEach(x => AzurePipelines?.PublishTestResults(
198-
new[] { x.ToString() },
199-
$"{Path.GetFileNameWithoutExtension(x)} ({AzurePipelines.StageDisplayName})"));
198+
type: "VSTest",
199+
title: $"{Path.GetFileNameWithoutExtension(x)} ({AzurePipelines.StageDisplayName})",
200+
files: new[] { x.ToString() }));
200201
});
201202

202203
string CoverageReportDirectory => OutputDirectory / "coverage-report";

source/Nuke.Common/CI/AzurePipelines/AzurePipelines.cs

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,12 @@ public void LogWarning(
139139
}
140140

141141
public void PublishTestResults(
142-
IEnumerable<string> files,
143142
string title,
143+
string type,
144+
IEnumerable<string> files,
144145
bool? mergeResults = null,
145146
string platform = null,
146147
string configuration = null,
147-
string type = null,
148148
bool? publishRunAttachments = null)
149149
{
150150
WriteCommand(
@@ -155,7 +155,7 @@ public void PublishTestResults(
155155
.AddKeyValue("mergeResults", mergeResults)
156156
.AddKeyValue("platform", platform)
157157
.AddKeyValue("config", configuration)
158-
.AddKeyValue("runTitle", title)
158+
.AddKeyValue("runTitle", title.SingleQuote())
159159
.AddKeyValue("publishRunAttachments", publishRunAttachments));
160160
}
161161

@@ -193,22 +193,19 @@ public void WriteCommand(
193193
string message = null,
194194
Func<IDictionary<string, object>, IDictionary<string, object>> dictionaryConfigurator = null)
195195
{
196-
var escapedTokens = new[] { command };
197-
198-
if (dictionaryConfigurator != null)
199-
{
200-
escapedTokens = escapedTokens.Concat(dictionaryConfigurator
196+
var escapedTokens =
197+
dictionaryConfigurator?
201198
.Invoke(new Dictionary<string, object>())
202199
.Where(x => x.Value != null)
203-
.Select(x => $"{x.Key}={EscapeValue(x.Value.ToString())}")).ToArray();
204-
}
200+
.Select(x => $"{x.Key}={EscapeValue(x.Value.ToString())}").ToArray()
201+
?? new string[0];
205202

206-
Write(escapedTokens, message);
203+
Write(command, escapedTokens, message);
207204
}
208205

209-
private void Write(string[] escapedTokens, [CanBeNull] string message)
206+
private void Write(string command, string[] escapedTokens, [CanBeNull] string message)
210207
{
211-
_messageSink.Invoke($"##vso[{escapedTokens.JoinSpace()}]{EscapeMessage(message)}");
208+
_messageSink.Invoke($"##vso[{command} {escapedTokens.Join(";")}]{EscapeMessage(message)}");
212209
}
213210

214211
private string EscapeMessage([CanBeNull] string data)

0 commit comments

Comments
 (0)