@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user