Polishing.
Refine release process to update the Git state before build and distribute. See #15
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
workspace cleanup
|
||||
git update ${VERSION}
|
||||
release build ${VERSION}
|
||||
release distribute ${VERSION}
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user