We are using the Git Plugin : https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin
Currently, via webhooks we start a Jenkins build whenever a change is pushed to GitHub. Now we want to trigger the same build when a new tag is added. So we have two triggering conditions :
- A code change is pushed to GitHub
- A tag is created
If we try the fix mention in this thread then the builds start only for tags. jenkins trigger build if new tag is released
How can we do it for both scenarios ?
Question # 02 : How can we get the tag name inside a Jenkins build, is there any environment variable for it.