Polishing.

Refine release process to update the Git state before build and distribute.

See #15
This commit is contained in:
Mark Paluch
2023-01-13 10:35:58 +01:00
parent c04bef66c0
commit 5d73696815
5 changed files with 6 additions and 5 deletions

View File

@@ -40,6 +40,6 @@ fi
echo "About to push and distribute ${VERSION}."
sed "s|\${VERSION}|${VERSION}|g" < ci/push-and-distribute.template > target/push-and-distribute.shell
sed "s|\${VERSION}|${VERSION}|g" < ci/build-and-distribute.template > target/build-and-distribute.shell
spring-data-release-shell

View File

@@ -1,3 +1,4 @@
workspace cleanup
git update ${VERSION}
release build ${VERSION}
release distribute ${VERSION}

View File

@@ -51,7 +51,7 @@ The <<build,*Build and publish the release*>> phase is what's covered by the CI
|🚨 *To trigger 🛣 the release* `git push` the `release` branch
|`$ git push origin release`
|Go to https://jenkins.spring.io/view/SpringData/job/spring-data-release-release/, Navigate to the `release` branch.
|Go to https://jenkins.spring.io/view/SpringData/job/spring-data-release/job/release, Navigate to the `release` branch.
A job should have started. Click on the active job, and then click on *Open Blue Ocean*.
| Monitor the release process.

View File

@@ -81,7 +81,7 @@ class BuildCommands extends TimedCommand {
project.ifPresent(it -> build.triggerBuild(iteration.getModule(it)));
if (!project.isPresent()) {
iteration.forEach(build::triggerBuild);
build.build(iteration);
}
}

View File

@@ -69,9 +69,9 @@ class GitCommands extends TimedCommand {
}
@CliCommand("git update")
public void update(@CliOption(key = { "", "train" }, mandatory = true) String trainName)
public void update(@CliOption(key = { "", "train" }, mandatory = true) TrainIteration iteration)
throws Exception, InterruptedException {
git.update(ReleaseTrains.getTrainByName(trainName));
git.update(iteration.getTrain());
}
@CliCommand("git tags")