From 911aca914fcfb79a5bfcd81bf50962d060576c4e Mon Sep 17 00:00:00 2001 From: Tomas Bjerre Date: Sat, 17 Feb 2018 08:21:08 +0100 Subject: [PATCH] Doc --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c5743da..3b3d374 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ This means it can trigger on any webhook, like: * [Bitbucket Server](https://confluence.atlassian.com/bitbucketserver/managing-webhooks-in-bitbucket-server-938025878.html) * [GitHub](https://developer.github.com/webhooks/) * [GitLab](https://docs.gitlab.com/ce/user/project/integrations/webhooks.html) -* [Gogs](https://gogs.io/docs/features/webhook) +* [Gogs](https://gogs.io/docs/features/webhook) and [Gitea](https://gitea.io/) * [Assembla](https://blog.assembla.com/AssemblaBlog/tabid/12618/bid/107614/Assembla-Bigplans-Integration-How-To.aspx) * And many many more! @@ -86,6 +86,11 @@ The job can then be triggered with that token like this. curl -vs http://localhost:8080/jenkins/generic-webhook-trigger/invoke?token=abc123 2>&1 ``` +If you want to trigger with some post content, curl can dot that like this. +``` +curl -v -H "Content-Type: application/json" -X POST -d '{ "app":{ "name":"GitHub API", "url":"http://developer.github.com/v3/oauth/" }}' http://localhost:8080/jenkins/generic-webhook-trigger/invoke?token=sometoken +``` + ## Screenshots ![Generic trigger](https://github.com/jenkinsci/generic-webhook-trigger-plugin/blob/master/sandbox/generic-trigger.png)