jenkinsci / gogs-webhook-plugin

Jenkins Gogs Webhook
https://plugins.jenkins.io/gogs-webhook/
MIT License
79 stars 42 forks source link

gogs-webhook didn't support gogs release event #45

Open sagaii opened 6 years ago

sagaii commented 6 years ago

Description

I had tried to config my gogs system to support auto release my test version to work version.
so i hope in gogs system create one repo version , it will send out one webhook event . in fact, gogs had support the funciton. i had choosed event of repo release . it give out this post data:

Request URL: http://jenkins.address/gogs-webhook/?job=releasedb/copytest Request method: POST Content-Type: application/json X-Gogs-Delivery: 7f96dbfc-c93a-4247-8528-0c7e1566c53d X-Gogs-Event: release X-Gogs-Signature: 03cfb231c9c643277fae62bd318538e9e77157c630cb1373e7f37ab84cc14e94

I had read gogs=webhook source code , in webhook.java , it only receive "push" event. so , i hope it can add "release" and other's event.

thx.

...

sanderv32 commented 6 years ago

@sagaii what should the release event do other then triggering a job?

sagaii commented 6 years ago

Gogs-webhook receive release event , triggering a job. and the job can execute deploy work,t example copy program from test environment to production environment.

sagaii commented 6 years ago

in this gogs-webhook didn't support release event. so i only use build token root plugin , create a url link to triggering a job.

sanderv32 commented 6 years ago

It's not so hard to also make it respond to a release event but that will do exactly the same as a push event.

sagaii commented 6 years ago

yes, i think so . it same as a push event. but i need it . :) .

schlitzered commented 6 years ago

hello i would also need a feature like this, the jenkins plugin should react on tag creation, reacting on release creation would also work, since it basically creates a tag.

fseidler commented 6 years ago

Hello I also need this feature, I have different jobs that should run based on the type of the event: release or push

aeciopires commented 6 years ago

+1

trrtly commented 6 years ago

+1

toan267 commented 5 years ago

+1

sanderv32 commented 5 years ago

Opened PR #62 for this.