#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:
@@ -90,8 +90,6 @@ public class BuildOperations {
|
||||
* @return
|
||||
*/
|
||||
public DeploymentInformation performRelease(ModuleIteration module) {
|
||||
|
||||
prepareVersion(module, Phase.PREPARE);
|
||||
return buildAndDeployRelease(module);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user