Skip to content

Commit aa0a4e4

Browse files
Merge pull request #645 from WildGums/GitHubSync/20240306-133333
GitHubSync update
2 parents 867bb3e + badc9c9 commit aa0a4e4

5 files changed

+14
-14
lines changed

deployment/cake/generic-variables.cake

+2-2
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ public class SonarQubeContext : BuildContextBase
400400
public string Url { get; set; }
401401
public string Organization { get; set; }
402402
public string Username { get; set; }
403-
public string Password { get; set; }
403+
public string Token { get; set; }
404404
public string Project { get; set; }
405405

406406
protected override void ValidateContext()
@@ -514,7 +514,7 @@ private GeneralContext InitializeGeneralContext(BuildContext buildContext, IBuil
514514
Url = buildContext.BuildServer.GetVariable("SonarUrl", showValue: true),
515515
Organization = buildContext.BuildServer.GetVariable("SonarOrganization", showValue: true),
516516
Username = buildContext.BuildServer.GetVariable("SonarUsername", showValue: false),
517-
Password = buildContext.BuildServer.GetVariable("SonarPassword", showValue: false),
517+
Token = buildContext.BuildServer.GetVariable("SonarToken", showValue: false),
518518
Project = buildContext.BuildServer.GetVariable("SonarProject", data.Solution.Name, showValue: true)
519519
};
520520

deployment/cake/lib-msbuild.cake

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#addin "nuget:?package=Cake.Issues&version=4.0.0"
2-
#addin "nuget:?package=Cake.Issues.MsBuild&version=4.0.0"
1+
#addin "nuget:?package=Cake.Issues&version=4.1.0"
2+
#addin "nuget:?package=Cake.Issues.MsBuild&version=4.1.0"
33

44
#tool "nuget:?package=MSBuild.Extension.Pack&version=1.9.1"
55

deployment/cake/sourcecontrol-github.cake

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#addin "nuget:?package=Cake.GitHub&version=0.1.0"
2-
#addin "nuget:?package=Octokit&version=9.1.2"
2+
#addin "nuget:?package=Octokit&version=10.0.0"
33

44
//-------------------------------------------------------------
55

deployment/cake/tasks.cake

+8-8
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
// It probably means the tool is not correctly installed.
3737
// `dotnet tool install --global dotnet-sonarscanner --ignore-failed-sources`
3838
//#tool "nuget:?package=MSBuild.SonarQube.Runner.Tool&version=4.8.0"
39-
#tool "nuget:?package=dotnet-sonarscanner&version=6.1.0"
39+
#tool "nuget:?package=dotnet-sonarscanner&version=6.2.0"
4040

4141
//-------------------------------------------------------------
4242
// BACKWARDS COMPATIBILITY CODE - START
@@ -397,9 +397,9 @@ Task("Build")
397397
sonarSettings.Login = buildContext.General.SonarQube.Username;
398398
}
399399

400-
if (!string.IsNullOrWhiteSpace(buildContext.General.SonarQube.Password))
400+
if (!string.IsNullOrWhiteSpace(buildContext.General.SonarQube.Token))
401401
{
402-
sonarSettings.Password = buildContext.General.SonarQube.Password;
402+
sonarSettings.Token = buildContext.General.SonarQube.Token;
403403
}
404404

405405
// see https://cakebuild.net/api/Cake.Sonar/SonarBeginSettings/ for more information on
@@ -450,25 +450,25 @@ Task("Build")
450450
{
451451
await buildContext.SourceControl.MarkBuildAsPendingAsync("SonarQube");
452452

453-
var sonarEndSettings = new SonarEndSettings
453+
var sonarSettings = new SonarEndSettings
454454
{
455455
// Use core clr version of SonarQube
456456
UseCoreClr = true
457457
};
458458

459459
if (!string.IsNullOrWhiteSpace(buildContext.General.SonarQube.Username))
460460
{
461-
sonarEndSettings.Login = buildContext.General.SonarQube.Username;
461+
sonarSettings.Login = buildContext.General.SonarQube.Username;
462462
}
463463

464-
if (!string.IsNullOrWhiteSpace(buildContext.General.SonarQube.Password))
464+
if (!string.IsNullOrWhiteSpace(buildContext.General.SonarQube.Token))
465465
{
466-
sonarEndSettings.Password = buildContext.General.SonarQube.Password;
466+
sonarSettings.Token = buildContext.General.SonarQube.Token;
467467
}
468468

469469
Information("Ending SonarQube");
470470

471-
SonarEnd(sonarEndSettings);
471+
SonarEnd(sonarSettings);
472472

473473
await buildContext.SourceControl.MarkBuildAsSucceededAsync("SonarQube");
474474
}

src/Directory.Build.analyzers.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<PrivateAssets>all</PrivateAssets>
1717
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
</PackageReference>
19-
<PackageReference Include="NUnit.Analyzers" Version="3.10.0">
19+
<PackageReference Include="NUnit.Analyzers" Version="4.0.1">
2020
<PrivateAssets>all</PrivateAssets>
2121
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2222
</PackageReference>

0 commit comments

Comments
 (0)