Integrated: bot: add version handler
Erik Helin
ehelin at openjdk.java.net
Fri May 28 18:32:22 UTC 2021
On Mon, 24 May 2021 14:08:45 GMT, Erik Helin <ehelin at openjdk.org> wrote:
> Hi all,
>
> please review this patch that adds a version handler, typically listening on the path `/version`. This simple handler just returns the version of the running bots, useful for scripting or dashboards. Typical configuration:
>
>
> {
> "http-server": {
> "/version": {
> "type": "version"
> }
> }
> }
>
>
> Example of usage:
>
>
> $ curl http://localhost:8080/version
> bd09ee70259733dc2e18577da6a36462c900dba3
>
>
> Testing:
> - [x] Tested locally on Linux x64
>
> Thanks,
> Erik
This pull request has now been integrated.
Changeset: a1664324
Author: Erik Helin <ehelin at openjdk.org>
URL: https://git.openjdk.java.net/skara/commit/a1664324b80b8cdbe000089ce46ac9dff978fd69
Stats: 62 lines in 4 files changed: 61 ins; 0 del; 1 mod
bot: add version handler
Reviewed-by: erikj
-------------
PR: https://git.openjdk.java.net/skara/pull/1165
More information about the skara-dev
mailing list