Is it possible to create a Tag in git while committing and pushing the change using the grgit plugin ...??
This is my code to push my changes to git ..
task pushChangestoGit()
{
def grgit = org.ajoberstar.grgit.Grgit.open(dir: '.')
grgit.add(patterns: ['version.properties'])
grgit.commit(message: 'Committing Version Property Changes')
grgit.push(force: true)
}
Yes, you can do it by:
grgit.tag.add(name: 'tag-name', pointsTo: 'changeset')