-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
...ostSharp.Engineering.BuildTools/Dependencies/Definitions/PostSharpDependencies.V2025_0.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
// Copyright (c) SharpCrafters s.r.o. See the LICENSE.md file in the root directory of this repository root for details. | ||
|
||
using JetBrains.Annotations; | ||
using PostSharp.Engineering.BuildTools.ContinuousIntegration; | ||
using PostSharp.Engineering.BuildTools.ContinuousIntegration.Model; | ||
using PostSharp.Engineering.BuildTools.Dependencies.Model; | ||
|
||
namespace PostSharp.Engineering.BuildTools.Dependencies.Definitions; | ||
|
||
public static partial class PostSharpDependencies | ||
{ | ||
// ReSharper disable once InconsistentNaming | ||
|
||
[PublicAPI] | ||
public static class V2025_0 | ||
{ | ||
private class PostSharpDependencyDefinition : DependencyDefinition | ||
{ | ||
private static readonly TeamCityProjectId _teamCityProjectId = new( | ||
$"{_projectName}_{_projectName}{Family.VersionWithoutDots}", | ||
_projectName ); | ||
|
||
private static readonly string _distributionBuildId = $"{_teamCityProjectId}_BuildDistribution"; | ||
|
||
public PostSharpDependencyDefinition() | ||
: base( | ||
Family, | ||
"PostSharpPackage", | ||
$"release/{Family.Version}", | ||
null, | ||
new AzureDevOpsRepository( _projectName, _projectName ), | ||
new CiProjectConfiguration( | ||
_teamCityProjectId, | ||
new ConfigurationSpecific<string>( "not-used", _distributionBuildId, "not-used" ), | ||
null, | ||
null, | ||
TeamCityHelper.TeamCityCloudTokenEnvironmentVariableName, | ||
TeamCityHelper.TeamCityCloudUrl ), | ||
false ) | ||
{ | ||
this.EngineeringDirectory = @"PrivateBuild\Distribution\eng"; | ||
} | ||
} | ||
|
||
public static ProductFamily Family { get; } = new( _projectName, "2025.0", DevelopmentDependencies.Family ); | ||
|
||
public static DependencyDefinition PostSharp { get; } = new PostSharpDependencyDefinition(); | ||
} | ||
} |