Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sagaii opened this issue Jun 5, 2018 · 11 comments
Open

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

sagaii opened this issue Jun 5, 2018 · 11 comments
Labels

Comments

@sagaii
Copy link

sagaii commented Jun 5, 2018

  • Gogs version (or commit ref):
  • Jenkins version: Jenkins ver. 2.107.3
  • Jenkins modules used in combination with gogs-webhook-plugin:
  • JSON Output of webhook: {"result":"ERROR","message":"Only push event can be accepted."}

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
Copy link
Contributor

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

@sagaii
Copy link
Author

sagaii commented Jun 9, 2018

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
Copy link
Author

sagaii commented Jun 9, 2018

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
Copy link
Contributor

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
Copy link
Author

sagaii commented Jun 10, 2018

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

@schlitzered
Copy link

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
Copy link

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

@aeciopires
Copy link

+1

2 similar comments
@trrtly
Copy link

trrtly commented Nov 21, 2018

+1

@toan267
Copy link

toan267 commented Jan 3, 2019

+1

@sanderv32
Copy link
Contributor

Opened PR #62 for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants