Skip to content
This repository was archived by the owner on Mar 14, 2023. It is now read-only.

Commit 94dcf4c

Browse files
author
Bernhard Grünewaldt
committed
doc
1 parent f116f41 commit 94dcf4c

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,34 @@
11
# jenkins-github-webhook-notifier-plugin
2+
23
jenkins-github-webhook-notifier-plugin
34

5+
### What it does
6+
7+
* It parses the actual GitHub Webhook JSON Payload
8+
* Extracts the Repository Clone URL and the Git Commit ID
9+
* It triggers the Git-Plugins notifyTrigger with the fixed commit id
10+
* That way tags and branches are build even if they have the same revision
11+
* (a git push of a tag has a unique commit id but the same revision)
12+
13+
### Why?
14+
15+
I needed something that forcefully triggers my Jenkins Jobs by passing the actual Git Commit ID.
16+
17+
The default behaviour of existing plugins is to "decide if it needs to rebuild". Which leads
18+
to a state where if your job just build your `master` Branch and you create a tag of off the `master` branch
19+
and push that tag, that the jenkins job will not be triggered, since the revisions are equal.
20+
21+
22+
23+
`https://user:pass@jenkins.foo/jenkins/github-webhook-notifier-plugin/receive`
24+
25+
26+
27+
<p align="center"><img src="https://codeclou.github.io/jenkins-github-webhook-notifier-plugin/img/github-webhook-settings.png" width="80%"></p>
428

29+
<p align="center"><img src="https://codeclou.github.io/jenkins-github-webhook-notifier-plugin/img/jenkins-build-by-commit-id.png" width="80%"></p>
530

6-
* Plugin does allow self signed certificates and does not check the SSL Cert of `Jenkins.getInstance().getRootUrl();`
31+
<p align="center"><img src="https://codeclou.github.io/jenkins-github-webhook-notifier-plugin/img/webhook-specific-commit-id.png" width="80%"></p>
732

833
-----
934

0 commit comments

Comments
 (0)