| commit | 3f87e3485e8ef401f7d352a604d040441e54bc2f | [log] [tgz] |
|---|---|---|
| author | Luca Milanesio <luca.milanesio@gmail.com> | Tue Mar 28 23:07:32 2017 +0100 |
| committer | Luca Milanesio <luca.milanesio@gmail.com> | Tue Mar 28 23:07:32 2017 +0100 |
| tree | eb4f39479b7b76b87005e57923117d6f81fa010d | |
| parent | 78093e8a074687466704f058db412b8b186d5878 [diff] |
Collect gerritVersion in the support bundle zip
Collect Gerrit version into a single JsonString
Example:
curl -v -H "Content-Type: application/json" -d '{"gerritVersion":"true"}' http://localhost:8080/plugins/gerrit-support/collect
> POST /plugins/gerrit-support/collect HTTP/1.1
< HTTP/1.1 201 Created
< Location: /plugins/gerrit-support/collect/20170319-175459-collect-ab2093a4-139f-4310-872f-6d00bfa313e5.zip
The resulting zip file can be then downloaded using an HTTP GET.
Example:
curl -v http://localhost:8080/plugins/gerrit-support/collect/20170319-175459-collect-ab2093a4-139f-4310-872f-6d00bfa313e5.zip
> GET /plugins/gerrit-support/collect/20170319-175459-collect-ab2093a4-139f-4310-872f-6d00bfa313e5.zip
< HTTP/1.1 200 OK
< Content-Type: multipart/x-zip;charset=utf-8
The archive bundle contains one entry named 'version.json' with a
single JSON String containing the Gerrit version.
Example:
unzip 20170319-175459-collect-ab2093a4-139f-4310-872f-6d00bfa313e5.zip
inflating: version.json
cat version.json
"2.13.6-3240-g1c96d0a"
Change-Id: Ifb2a50c4269212c5adf68ff3edd5e6871e8f5b48
Collect information on Gerrit Code Review in order to have enough elements to request support.
Gerrit-Support plugins is written in Scala language and built with Sbt. To build the plugin you need to have SBT 0.13.13 installed and then run the assembly target.
Example:
$ sbt assembly [...] [info] Packaging /Users/lucamilanesio/gerrithub/gerrit-support/target/scala-2.11/gerrit-support.jar ...