Gitblit v1.5.0 has been released.Highlights.
- Integrated SSH courtesy of the Gerrit, Apache Mina, and Apache SSHD
- A new and currently limited [1] plugin system
- Self-hosted/on-premise charts based on flotr2, replaces GoogleCharts
- Update to Jetty 9
- Java 7 now required, this seems reasonable since it's been out for almost 3 years and Java 8 is now shipping
[1]: There are four current extension points. The web UI is not yet
extendable. This will be addressed in a subsequent release once the
desired extension points are identified.
SSH Key Management.This is not exposed through the web UI yet. All key management is done through an SSH connection.
cat ~/.ssh/id_rsa.pub | ssh localhost -l admin -p 29418 keys addThis uploads your default public key and adds it to your account.
ssh localhost -l admin -p 29418 keys lsThis will list your available public keys.
ssh localhost -l admin -p 29418 keys permission 1 RThis will change the access permission of key 1 to read-only. Valid permissions are V, R, RW.
ssh localhost -l admin -p 29418 keys comment 1 Fedora20This will change the the comment/description of key 1 to "Fedora20".
Plugin Management.Gitblit ships with 0 plugins, however, there are some plugins available. Convenient management of the plugin system is only offered through the new SSH interface.
Once you have SSH up-and-running...
ssh localhost -l admin -p 29418 plugin availableThis will download the plugins.json file from the Github-hosted plugin registry and show you the plugins that are available to install. The plugins.json file is cached and not automatically refreshed. You can force a refresh by specifying the -r flag for the available command.
ssh localhost -l admin -p 29418 plugin install powertoolsThis will install the powertools plugin. BTW, all downloads are SHA-1 and MD5 checksum-verified by default. Gitblit expects Maven-style checksums: file.ext, file.ext.sha1, file.ext.md5
ssh localhost -l admin -p 29418 plugin show powertoolsThis will show/describe the details of a plugin including it's extension points, if it is installed.
Available Plugins.Right now there are two.
- powertools: Command and control Gitblit over an SSH connection
- SmartTicketBranches: Remove ticket branches on close and re-create them on re-open
Special Thanks.Special thanks to David Ostrovsky for helping me get SSH up-and-running and for providing direction on bringing a plugin architecture to Gitblit.
Share & enjoy.
-J