Commit Graph

50 Commits

Author SHA1 Message Date
Ryan Baxter
008343ff3a Create tasks to create release bundles 2024-05-31 16:41:13 -04:00
Olga MaciaszekSharma
2b664749b8 Fix Sagan authentication. 2023-07-17 19:18:59 +02:00
Marcin Grzejszczak
aa5d636de3 Spring Boot 3 migration (#255)
* It compiles

* WIP

* Upgraded jdk to 17:

* Added tests for Github repo

* Modified the sagan client

* Updated versions
2023-06-22 16:30:34 +02:00
Olga Maciaszek-Sharma
b3c4ef2cdc Wip upgrade deps (#252) 2022-04-01 16:48:01 +02:00
Robert McNees
886e3513d5 Update Unit Tests from JUnit4 to JUnit5 (#251)
* JUnit5 upgrade

* Refactor JUnit4 TemporaryFolder

* Remove JUnit4 dependency
2022-03-21 11:44:02 -04:00
Spencer Gibb
e83cda4fed Updates for new sagain api, s-c-build 3.1 and boot 2.6 (#243)
Updates releaser to use spring cloud build 3.1.0

Transitively uses boot 2.6

Updates releaser to use new Sagan API

Fixes gh-196
Fixes gh-194
2022-02-18 14:29:17 -05:00
Oleg Zhurakousky
2e7d318f13 Enhance null assertion in Arguments 2022-01-27 13:15:19 +01:00
Oleg Zhurakousky
513866390e Add test for null originalVersion 2022-01-27 13:06:20 +01:00
Oleg Zhurakousky
42d8736d19 Fix assertions in Arguments 2022-01-27 12:48:32 +01:00
Oleg Zhurakousky
4a39306678 Add more logging to Arguments 2022-01-27 12:35:58 +01:00
Oleg Zhurakousky
adc8ef6f7f fix checkstyle 2022-01-27 12:17:47 +01:00
Oleg Zhurakousky
66059a48bd Add more logging for release task 2022-01-27 12:12:15 +01:00
Oleg Zhurakousky
c0b646031d Add additional assertion in Arguments for originalVersion not being null 2022-01-27 12:04:42 +01:00
Oleg Zhurakousky
066334e81c Fix checkstyle 2022-01-27 11:54:22 +01:00
Oleg Zhurakousky
ea70e08b73 Adding assertion for original version not being null 2022-01-27 11:47:21 +01:00
spencergibb
a4713042db Updates wiki to to spring-cloud-release
Fixes https://github.com/spring-cloud/spring-cloud-release/issues/180
2020-10-08 11:23:42 -04:00
Marcin Grzejszczak
6d486eb1cb Catching unexpected exceptions in batch 2020-09-24 17:03:43 +02:00
Marcin Grzejszczak
9644d74e3c Logs 2020-09-23 12:58:16 +02:00
Marcin Grzejszczak
8e6060db1b Picking original project version parsed from pom not from a folder 2020-09-23 12:49:40 +02:00
Marcin Grzejszczak
74f0afe1a3 Picking original project version parsed from pom not from a folder 2020-09-23 12:45:31 +02:00
Marcin Grzejszczak
5e90536111 Debug 2020-09-23 12:43:08 +02:00
Marcin Grzejszczak
c7a870db2e Debug 2020-09-23 12:39:51 +02:00
Marcin Grzejszczak
0c255e92fd Added debug options 2020-09-23 12:32:19 +02:00
Marcin Grzejszczak
453179dd8e Added more logging 2020-09-23 11:58:03 +02:00
Marcin Grzejszczak
5645e9aa2d Removed unnecessary jobs 2020-08-06 10:25:50 +02:00
Marcin Grzejszczak
13091b0cf6 Removed the tasks related to updating project documentation repo 2020-08-04 19:25:17 +02:00
Marcin Grzejszczak
9834106712 Breaking the cycle with HttpServerErrorException 2020-07-24 14:23:38 +02:00
Marcin Grzejszczak
cf6e4d7ae0 Working with calver
updated the version to 2.0.0-SNAPSHOT
2020-06-05 11:39:37 +02:00
Marcin Grzejszczak
6d0595d72a Don't throw an exception when project name not found in the list of fixed projects 2020-03-20 15:40:00 +01:00
Marcin Grzejszczak
731d68ef50 Updated exit codes and guarded against no projects to run
- exit code for build unstable resulted in batch being failed - migrated to completed build status and manually checks the execution result
- added a guard against no projects to run when marking the run post release tasks only option

Fixes gh-190, gh-191
2020-03-05 18:35:07 +01:00
Marcin Grzejszczak
50a4155d1c Fixes properties update for Gradle 2020-03-04 13:15:13 +01:00
Marcin Grzejszczak
aadd5baaf0 Uses releaser properties of a given project for certain tasks 2020-02-03 16:32:39 +01:00
Marcin Grzejszczak
6251019073 Read custom config for a single project 2020-01-23 16:17:20 +01:00
Spencer Gibb
93598690ab Splits BuildReportHandler from ExecutionResultHandler 2020-01-22 14:59:45 -05:00
Marcin Grzejszczak
99dd179e13 Fixed the broken compilation 2020-01-22 15:53:27 +01:00
Simon Baslé
188c079bd6 Improvements to common build and new Reactor task (merge with rebase) (#183)
* Reactor: For reference, mention additional inputs in app properties

* Polish: fix javadoc copypasta and mark potential problem in GitRepo

* Common: Expose method for git log (list revisions between 2 refs)

* Common: Only post-process RtGithub beans into CachingGithub

* Common: Make Sagan noOp if property is not explicitly set

* Common: Fix Process command executor outputting to app's stdout

This prevents the command executor from capturing the command's output.

* Common: Fix findTagOrBranchHeadRevision and log

In findTag... we need to compare name using refs/tags/
and refs/heads/ prefixes.

In log we need to peel symbolic tags to get the right
ObjectId. Optional.map did seem to cause issues.

* Common: Add isMergeCommit to SimpleCommit

* Common: Add method to find tag SHA by name

* Common: Polish how exit codes are generated and used

* Common: Add BuildReportHandler to show report earlier than last step

This commit also filters out tasks that haven't run yet, avoiding
NPE due to endTime being null.

* Reactor: restart task should not be part of dry-runs

* Reactor: Alter Gradle build command to include bumpVersionsInReadme task

* Reactor: Add GenerateReleaseNotesTask

Also added partial tests for the task.

Avoids generating notes if snapshot, mark as pre-release if milestone
or rc.

* Reactor: Split out configurations and use profiles for test

* Reactor: Fix org in application.yml

* Reactor: Fix some formatting

* Reactor: Force github OAuth token at Github client creation

* Reactor: Split parseChangelog into several more testable methods

* Reactor: Let interactive GenerateReleaseNotesTask force a log range

* Reactor: Allow multiple dispatch of note entries

Switching from a single TYPE to an EnumSet

* Reactor: Extract issue numbers in title too just in case

* Reactor: Fix alternative titles markdown and description

Also better protect agains Github client failures when
fetching more info like title and labels.

* Reactor: Polish format (newlines) in tag input, notes output

* Reactor: Check tag exists but not release. Check on SHA1

* Reactor: Make checks we can save notes draft BEFORE querying commits

* Reactor: Attempt to find existing release draft (max 2 month old), avoid unnecessary calls

If an existing draft is found, append notes to it.

* Reactor: Ask only for "from" change for interactive log/release notes
2020-01-22 10:44:59 +01:00
Marcin Grzejszczak
7632b99031 Don't run post release tasks if main ones failed 2020-01-21 14:17:36 +01:00
Marcin Grzejszczak
0506113ee7 Fixed
- not breaking the build when a release task has failed
- added skipped state of task
2020-01-21 13:39:11 +01:00
Marcin Grzejszczak
7667643176 Added automatic github caching 2020-01-09 17:09:20 +01:00
Marcin Grzejszczak
25f16ba90e Added release train shortcut for args 2020-01-09 16:53:01 +01:00
Marcin Grzejszczak
7e5d225a7e Should not throw an exception from batch 2019-12-28 14:07:45 +01:00
Marcin Grzejszczak
b8d17b6dc8 Catching execution result 2019-12-28 13:49:38 +01:00
Marcin Grzejszczak
8992e45321 Refactoring to batch (#181)
The rationale of this pull request is to

* have more maintainable and granular code
* not maintain the custom made job engine
* allow the users to customize the defaults of the releaser more easy
* allow the users to create their own steps without the need to change any existing code
* allow the users to fully change the flows and tasks logic
* abstract underlying batch mechanism (Spring Batch) so it doesn't leak to production code
* allow parallelization of the release process and release tasks
2019-12-23 13:49:58 +01:00
Marcin Grzejszczak
36383b14bf Releaser -> spring-cloud-release-tools 2017-03-07 22:28:44 +01:00
Marcin Grzejszczak
b6b71cc63a Added copyrights 2017-03-07 16:18:42 +01:00
Marcin Grzejszczak
6c1b65fa77 Added tests, removed waiting for key 2017-03-07 16:04:58 +01:00
Marcin Grzejszczak
6756df9916 Added docs 2017-03-07 13:24:39 +01:00
Marcin Grzejszczak
3b9f40fd75 Works fine 2017-03-07 13:13:01 +01:00
Marcin Grzejszczak
c2cf78ca72 modified the parent 2017-03-07 09:59:30 +01:00
Marcin Grzejszczak
85b718753c Multimodule project 2017-03-07 09:57:02 +01:00