Commit Graph

21 Commits

Author SHA1 Message Date
Mark Paluch
7e4265a594 #54 - Switch to verb-based issue update of Jira tickets.
Use PUT using update verbs instead of PUT'ing the whole Jira issue value object to prevent accidental update of unwanted but set fields.
2017-06-07 13:57:02 +02:00
Mark Paluch
658bdd2836 #53 - Skip Jira ticket assignment if ticket is already assigned.
Jira tickets are no longer self-assigned if they are assigned already.
2017-05-09 14:55:31 +02:00
Oliver Gierke
8504c605f7 #49 - Upgraded to Spring Boot 2.0 snapshots. 2017-05-04 15:38:55 +02:00
Oliver Gierke
0e4f194e81 #44 - Added infrastructure to prevent passwords from being printed to the console.
Introduced value objects to properly abstract command line arguments and introduced an interface Masked that allows masking a String value when printed to the console.
2017-04-03 17:02:38 +02:00
Oliver Gierke
05ae394fad #33 - Projects can now have an explicit full name.
Project has a withFullName(…) to be able to define it manually. Projects makes use of that to explicitly define the name for Apache backed ones.

Introduced a skipTests property to make explicit, which projects should not have their test run during a build.

Introduced overloads to allow the optional lookup of a Project by name.
2016-11-24 15:28:53 +01:00
Oliver Gierke
ac1273856c #32 - Allow enforcing to build milestone releases on a branch.
Train has now a method withAlwaysUseBranch(…) to define that milestone releases are supposed to be build from a branch, too.

Introduced Kay release train using that new flag and setting up a customized Iteration chain including a second milestone.
2016-11-24 15:28:03 +01:00
Oliver Gierke
7ee134c777 #28 - Project lookup by String now also considers keys. 2016-06-19 09:29:15 +02:00
Oliver Gierke
3e0e742378 #26 - Upgraded to Spring 4.3 and Spring Shell 1.2 RC1.
Removed @Autowired from constructors. Tweaked class setup with Lombok in a variety of places (using @FieldDefaults, @NonNull etc.).
2016-06-19 09:25:22 +02:00
Oliver Gierke
c9f12b1c70 #22 - UpdateInformation now produces correct version for release train BOM on GA releases. 2016-04-06 17:28:20 +02:00
Oliver Gierke
8282a901a9 #20 - Turned DeploymentInformation into an interface. 2016-04-06 13:42:56 +02:00
Oliver Gierke
a044322b31 #19 - Made command classes package protected.
Introduced customized execution strategy that makes methods on command classes accessible before executing them. This allows to make command classes package protected.

Introduced TimedCommand base class to output the time a command execution takes.
2016-04-05 19:38:34 +02:00
Oliver Gierke
30bec2701a #5 - Polishing.
Refactored issue tracker implementation into dedicated packages. Removed package tangles by moving some types around. Extracted GitHub specific properties into its own properties type reusing the Git credentials as we're talking to GitHub anyway.

Added Jackson parameter name module and enabled Java 8 parameter names to be able to get rid of the manually declared constructors for payload classes. Turned them into value objects where possible.

Original pull request: #14.
2016-04-05 18:43:46 +02:00
Mark Paluch
9944848d81 #5 - Create release tickets and release versions for Jira-tracked projects.
Creates jira release version for a train iteration if not present. Creates release tickets in Jira and GitHub if not present. Added pre-release verification that the release ticket is present and all other tickets are closed. Allow singular ticket and release version creation. Add integration tests using WireMock. Add command to self-assign release tickets.

Added CLI commands:
* jira releasetickets
* jira create releasetickets
* jira self-assign releasetickets
* jira create releaseversions
* github tickets
* github releasetickets
* github create releaseversions
* github create releasetickets

Original pull request: #14.
2016-04-05 18:43:37 +02:00
Oliver Gierke
7181e33e3f #2 - Polishing
Moved more logic into value objects to ease testability. Branches now know whether they're an issue branch for a given tracker. TicketBranches now implements Streamable and allows obtaining a new instance with only resolved tickets in it an inspect whether a it contains a ticket for a given Branch.

Cleaned up GitOperations and GitCommands to make use of the new functionality. "git issuebranches" command was tweaked to default resolvable to true in case the option is set.

Renamed GitHubConnector to correct case. Fixed imports in GitHubIssueTracker.

Formatting.
2016-02-15 18:54:17 +01:00
Mark Paluch
a94f109ae7 #2 - Provide command to list all issue branches alongside their state in the issue tracker 2016-02-15 18:53:09 +01:00
Oliver Gierke
6f62556ed3 #11 - Added command to backport changelog entries.
We now support a git backport changelog $trainIteration --target $targetTrain,$targetTrain to backport the changelog commit for the given source iteration into the given release trains. If the source iteration is not corresponding to the master branch (i.e. for service iterations), the master branch is becoming an additional target for the port.
2016-02-15 18:53:06 +01:00
Oliver Gierke
a5daf60f8c #8 - The execution of the versions plugin now cleans up after itself.
Tweaked the expansion of the Maven plugins to only map the plugin so that e.g. versions:set gets expanded to the fully qualified version of the versions plugin as registered in application.properties.

Tweaked the expansion to inspect all arguments given but ignore properties not containing a colon or staring with a dash.
2016-02-12 14:50:04 +01:00
Oliver Gierke
5d330e2573 Tweaked ordering of modules within trains and train iterations.
We're now using the global sorting of the projects defined by the topological graph analysis run at startup to implement Comparable and exposing this comparability on more upper levels like modules.
2016-02-10 14:26:25 +01:00
Oliver Gierke
f7476dd64c A way too big commit.
Switched to Apache Maven Invoker for running Maven on the projects.

Added JGraphT to correctly sort dependencies in topological order.

Upgraded to Spring Boot 1.3.2, Lombok 1.16.6, jGit 4.2.0. Upgraded to Spring Plugin 1.3 to benefit from lazy exception creation using lambdas. Added Lombok configuration to throw IllegalArgumentException on null checks.
2016-02-10 12:01:06 +01:00
Oliver Gierke
6b2fea839a Significant Java 8 updates and Spring Boot integration.
Moved to Spring Boot 1.3 and leverage the new configuration properties mechanism (see GitProperties and IoProperties). Improved ArtifactVersion to be a better value object.

Introduced usage of Java 8's CompletableFuture to execute most of the Git operations in parallel. Started to use Lambdas where possible.

Git configuration is now supposed to be done using a application-local.properties (Git ignored) file containing the relevant properties (see readme). The test configuration now uses a separate workspace location and a Sample release train to make sure the integration tests run without interfering a local workspace.

Added train declaration for Hopper. Integrated BootShim (see [0], [1]) to run the shell on top of Spring Boot.

[0] https://github.com/jeffellin/springshellwithboot
[1] https://github.com/spring-projects/spring-shell/issues/34
2015-11-21 12:32:57 +01:00
Oliver Gierke
d2beb0bd7a Moved release tool into dedicated sub-folder. 2015-07-07 08:30:23 +02:00