Polishing.
Refine release process to update the Git state before build and distribute. See #15
This commit is contained in:
@@ -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