Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating GitHub indexer #10240

Draft
wants to merge 10 commits into
base: dev
Choose a base branch
from
Draft
2 changes: 1 addition & 1 deletion .pipelines/Release-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ steps:
$url = "$(System.CollectionUri)$(System.TeamProject)/_apis/pipelines/${{ pipeline.id }}/runs?api-version=7.0"
Invoke-RestMethod -Uri $url -Method POST -Headers $headers -Body ($body | ConvertTo-Json) -ContentType "application/json"
env:
ACCESS_TOKEN: $(System.AccessToken)
ACCESS_TOKEN: $(System.AccessToken)
8 changes: 4 additions & 4 deletions src/NuGet.Jobs.Common/JobRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private static async Task<int> Run(JobBase job, string[] commandLineArgs, bool?
commandLineArgs);

// Setup logging
_applicationInsightsConfiguration = ConfigureApplicationInsights(job, jobArgsDictionary);
_applicationInsightsConfiguration = ConfigureApplicationInsights(job, jobArgsDictionary);

// Configure our logging again with Application Insights initialized.
loggerFactory = ConfigureLogging(job, _applicationInsightsConfiguration.TelemetryConfiguration);
Expand Down Expand Up @@ -279,9 +279,9 @@ private static async Task<int> JobLoop(
_logger.LogInformation("Job run took {RunDuration}", PrettyPrintTime(stopWatch.ElapsedMilliseconds));

_applicationInsightsConfiguration.DiagnosticsTelemetryModule?.SetHeartbeatProperty(
HeartbeatProperty_JobLoopExitCode,
exitCode.ToString(),
isHealthy: exitCode == 0);
HeartbeatProperty_JobLoopExitCode,
exitCode.ToString(),
isHealthy: exitCode == 0);
}

if (!runContinuously)
Expand Down
2 changes: 1 addition & 1 deletion src/NuGet.Jobs.Common/StorageAccountExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static IServiceCollection ConfigureStorageMsi(
string managedIdentityClientId = string.IsNullOrWhiteSpace(configuration[storageManagedIdentityClientIdPropertyName])
? configuration[Constants.ManagedIdentityClientIdKey]
: configuration[storageManagedIdentityClientIdPropertyName];

if (!string.IsNullOrWhiteSpace(useManagedIdentityStr))
{
useManagedIdentity = bool.Parse(useManagedIdentityStr);
Expand Down