Git

This plugin provides git repositories as accessor to nitto. To enable this plugin, put plugin "git" at the top of your buildfile.

Use git repositories

To use git repositories you simply use the accessor like so:

git://<repo-url>#<branch>

or for https based access:

git+https://<repo-url>#<branch>

Example: git+https://github.com/some-org/some-repo.git#master

Target data

Publishes the following data into a target:

  • $(git.branch): currently active branch
  • $(git.commit): latest commit hash (full)
  • $(git.commit10): latest commit hash (first 10 letters)