Skip to content

Commit

Permalink
Fix non-variant default name for tests-weekly (#1435)
Browse files Browse the repository at this point in the history
  • Loading branch information
benbp authored Feb 19, 2021
1 parent fe0e62f commit 0367c14
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ public WeeklyIntegrationTestingPipelineConvention(ILogger logger, PipelineGenera

protected override string GetDefinitionName(SdkComponent component)
{
return component.Variant == null ? $"{Context.Prefix} - {component.Name} - tests" : $"{Context.Prefix} - {component.Name} - tests-weekly.{component.Variant}";
var definitionName = $"{Context.Prefix} - {component.Name} - tests-weekly";
if (component.Variant != null) {
definitionName += $".{component.Variant}";
}
return definitionName;
}

protected override Schedule CreateScheduleFromDefinition(BuildDefinition definition)
Expand Down

0 comments on commit 0367c14

Please sign in to comment.