I have a Gitea and a Jenkins server. I installed Gitea plugin in Jenkins and set-up a multibranch pipeline which itself adds a webhook to the gitea repo. That works great, but the Jenkins pipeline will not build if a new tag was added. I wanted to add another webhook to do so.
As far as I can tell there is a webhook event for creation of branches and tags.
Is there a way to get the payload of the webhook in a Jenkinsfile to find out if there was a new tag added?