#66 - Tweaked release builds to only promote milestones and release candidates to Artifactory.
This commit is contained in:
@@ -309,6 +309,11 @@ class MavenBuildSystem implements BuildSystem {
|
|||||||
Assert.notNull(module, "Module iteration must not be null!");
|
Assert.notNull(module, "Module iteration must not be null!");
|
||||||
Assert.notNull(information, "Deployment information must not be null!");
|
Assert.notNull(information, "Deployment information must not be null!");
|
||||||
|
|
||||||
|
if (module.getIteration().isPublic()) {
|
||||||
|
logger.log(module, "Not a public version, skipping Artifactory deployment.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
logger.log(module, "Deploying artifacts to Spring Artifactory…");
|
logger.log(module, "Deploying artifacts to Spring Artifactory…");
|
||||||
|
|
||||||
CommandLine arguments = CommandLine.of(Goal.CLEAN, Goal.DEPLOY, //
|
CommandLine arguments = CommandLine.of(Goal.CLEAN, Goal.DEPLOY, //
|
||||||
|
|||||||
@@ -91,9 +91,11 @@ class ReleaseCommands extends TimedCommand {
|
|||||||
public void buildRelease(@CliOption(key = "", mandatory = true) TrainIteration iteration, //
|
public void buildRelease(@CliOption(key = "", mandatory = true) TrainIteration iteration, //
|
||||||
@CliOption(key = "project", mandatory = false) String projectName) throws Exception {
|
@CliOption(key = "project", mandatory = false) String projectName) throws Exception {
|
||||||
|
|
||||||
if (projectName != null) {
|
if (!iteration.getIteration().isPublic()) {
|
||||||
|
|
||||||
deployment.verifyAuthentication();
|
deployment.verifyAuthentication();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (projectName != null) {
|
||||||
|
|
||||||
Project project = Projects.requiredByName(projectName);
|
Project project = Projects.requiredByName(projectName);
|
||||||
ModuleIteration module = iteration.getModule(project);
|
ModuleIteration module = iteration.getModule(project);
|
||||||
@@ -103,11 +105,7 @@ class ReleaseCommands extends TimedCommand {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
deployment.verifyAuthentication();
|
build.performRelease(iteration).forEach(deployment::promote);
|
||||||
|
|
||||||
List<DeploymentInformation> deploymentInformation = build.performRelease(iteration);
|
|
||||||
|
|
||||||
deploymentInformation.forEach(deployment::promote);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ class MaintainedVersion implements Comparable<MaintainedVersion> {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
MaintainedVersion nextDevelopmentVersion() {
|
MaintainedVersion nextDevelopmentVersion() {
|
||||||
return MaintainedVersion.of(project, version.getNextDevelopmentVersion(), train);
|
return MaintainedVersion.of(project, version.getNextBugfixVersion(), train);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user