Update release tooling for enterprise releases.

Closes #92
This commit is contained in:
Mark Paluch
2024-07-30 09:42:56 +02:00
parent 600e6dd8a1
commit 5cf398e5e8
6 changed files with 29 additions and 14 deletions

View File

@@ -102,12 +102,11 @@ public class UpdateInformation {
if (phase == Phase.CLEANUP || phase == Phase.MAINTENANCE) {
return train.isCommercial()
? Arrays.asList(Repository.COMMERCIAL_SNAPSHOT, Repository.COMMERCIAL_RELEASE)
return train.isCommercial() ? Arrays.asList(Repository.COMMERCIAL_SNAPSHOT, Repository.COMMERCIAL_RELEASE)
: Arrays.asList(Repository.SNAPSHOT, Repository.MILESTONE);
}
return train.isCommercial() ? Arrays.asList(Repository.COMMERCIAL_RELEASE) : Collections.emptyList();
return Collections.emptyList();
}
/**

View File

@@ -29,11 +29,11 @@ deployment.opensource.distribution-repository=temp-private-local
# deployment.commercial.api-key <- local, for promotion
# Prod
deployment.commercial.server.uri=https://repo.spring.vmware.com
deployment.commercial.server.verification-resource=spring-commercial-staging-local
deployment.commercial.staging-repository=spring-commercial-staging-local
deployment.commercial.target-repository=spring-commercial-release-local
deployment.commercial.distribution-repository=spring-commercial-release-local
deployment.commercial.server.uri=https://usw1.packages.broadcom.com
deployment.commercial.server.verification-resource=spring-enterprise-maven-stage-local
deployment.commercial.staging-repository=spring-enterprise-maven-stage-local
deployment.commercial.target-repository=spring-enterprise-maven-prod-local
deployment.commercial.distribution-repository=spring-enterprise-maven-prod-local
deployment.commercial.project=spring
# deployment.commercial.distribution-repository=
# deployment.commercial.username <- local, for build

View File

@@ -70,6 +70,10 @@ class UpdateInformationUnitTests {
Phase.PREPARE);
assertThat(updateInformation.getRepositories()).isEmpty();
updateInformation = UpdateInformation.of(new TrainIteration(ReleaseTrains.TURING, Iteration.GA), Phase.PREPARE);
assertThat(updateInformation.getRepositories()).isEmpty();
}
@Test