In the same way that the Revision Number can be obtained for a Build using a varible:
repository.revision.number
Would be good to expose other properties like the Commit Message.