Skip to content

Commit fbf398b

Browse files
committed
#35776 Consolidated NuGet deployment failure.
1 parent 99e4897 commit fbf398b

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/PostSharp.Engineering.BuildTools/ContinuousIntegration/TeamCityHelper.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ bool TryPopulateBuildConfigurations(
812812
];
813813

814814
var artifactRules = string.Join( "\\n", rules );
815-
815+
816816
nuGetDependencies.Add(
817817
new(
818818
buildConfiguration.BuildConfigurationId,
@@ -1234,13 +1234,16 @@ bool TryAddPreOrPostDeploymentBuildConfiguration(
12341234
var publicNuGetDeploymentCiId = $"{consolidatedProjectIdPrefix}{MarkNuGetObjectId( publicDeploymentObjectName )}";
12351235

12361236
var nuGetPublicDeploymentSteps = new TeamCityBuildStep[] { new TeamCityEngineeringPublishBuildStep( publicConfiguration ) };
1237-
1237+
1238+
// TODO: Only Public builds of dependencies that define version need to be included.
1239+
// Here we include all Public builds which will cause download of all artifacts.
12381240
var nuGetPublicDeploymentDependencies =
12391241
nuGetPublicBuildDependencies
12401242
.Select(
12411243
d => new TeamCitySnapshotDependency(
12421244
d.ObjectId.Replace( $"_{publicBuildObjectName}", $"_{publicDeploymentObjectName}", StringComparison.Ordinal ),
1243-
true ) )
1245+
true ) )
1246+
.Concat( nuGetPublicBuildDependencies )
12441247
.Append( new( publicNuGetBuildCiId, true, nuGetBuildArtifactRules ) );
12451248

12461249
nuGetConfigurations.Add(

0 commit comments

Comments
 (0)