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

@@ -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")