#15 - Release preparation now already sets the project versions to the release ones.

We now already run the build commands to tweak the versions in the release preparations which allows us to rerun the release build in case it fails at some point.
This commit is contained in:
Oliver Gierke
2016-03-31 18:33:57 +02:00
parent 107ccef568
commit cc257acee7
2 changed files with 4 additions and 5 deletions

View File

@@ -90,8 +90,6 @@ public class BuildOperations {
* @return
*/
public DeploymentInformation performRelease(ModuleIteration module) {
prepareVersion(module, Phase.PREPARE);
return buildAndDeployRelease(module);
}

View File

@@ -82,10 +82,11 @@ public class ReleaseCommands implements CommandMarker {
misc.prepareChangelogs(iteration);
misc.updateResources(iteration);
build.updateProjectDescriptors(iteration, Phase.PREPARE);
git.commit(iteration, "Prepare %s.");
build.prepareVersions(iteration, Phase.PREPARE);
git.commit(iteration, "Release version %s.");
}
@CliCommand(value = "release build")
@@ -105,7 +106,7 @@ public class ReleaseCommands implements CommandMarker {
deployment.verifyAuthentication();
List<DeploymentInformation> deploymentInformation = build.performRelease(iteration);
git.commit(iteration, "Release version %s.");
deploymentInformation.forEach(deployment::promote);
build.prepareVersions(iteration, Phase.CLEANUP);