0

I want to start a Jenkins as soon as a tag is pushed on Gogs.

What I have already done:

  1. I installed Gogs Webhook plugin on Jenkins and configured the secret
  2. I configured webhook in Gogs to invoke Jenkins job

This works if I use push event, but when I try to use Create event I get the following response error :

{"result":"ERROR","message":"Only push event can be accepted."}

How can I do to pass tag version to the Jenkins job?

adev
  • 367
  • 1
  • 3
  • 20

1 Answers1

0

It seems that gogs-webhook-plugin only supports push events currently. Check out this issue for more details:

Investigated the problem but Gogs isn't triggering the webhook. This issue is also reported here #5042. Secondly until now we only trigger on push events, see line 104 in the file GogsWebHook.java. If the Gogs issue is solved we can take a look if we can implement this in this webhook. Will close this issue.

Now that Gogs is triggering the webhook on tag creation, a contribution to add this feature would be very useful.

Marcio Fonseca
  • 489
  • 4
  • 5