Jenkins GITSCM polling

Hi Everyone.

I wanted to know that if I am using “GitHub hook trigger for GITScm polling” option in Build Triggers section of a Job; and I am building the job only when a new tag is pushed to the git repository, then does it require the previous workspace to trigger the build?

How does it know that new tag has been pushed? From what does it compare to see if new tag has been pushed?

Hello @VanshikaW and welcome to this community :wave:

I think this works with GitHub webhooks, but I could be wrong. :thinking: