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

Commit 8582140

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

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

README.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jenkins-github-webhook-notifier-plugin
1010
* That way tags and branches are build even if they have the same revision
1111
* (a git push of a tag has a unique commit id but the same revision)
1212

13+
1314
### Why?
1415

1516
I needed something that forcefully triggers my Jenkins Jobs by passing the actual Git Commit ID.
@@ -20,16 +21,43 @@ and push that tag, that the jenkins job will not be triggered, since the revisio
2021

2122

2223

23-
`https://user:pass@jenkins.foo/jenkins/github-webhook-notifier-plugin/receive`
2424

2525

2626

27+
### GitHub Webhook Configuration
28+
29+
* **Payload URL**
30+
* `https://user:pass@jenkins.foo/jenkins/github-webhook-notifier-plugin/receive`
31+
* **Content type**
32+
* `application/json`
33+
* **Secret**
34+
* empty.
35+
* **Which events ...**
36+
* Just the `push` event
37+
2738
<p align="center"><img src="https://codeclou.github.io/jenkins-github-webhook-notifier-plugin/img/github-webhook-settings.png" width="80%"></p>
2839

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>
40+
41+
### Jenkins Job Configuration
42+
43+
44+
<p align="center"><img src="https://codeclou.github.io/jenkins-github-webhook-notifier-plugin/img/jenkins-source-code-management.png" width="80%"></p>
45+
46+
<p align="center"><img src="https://codeclou.github.io/jenkins-github-webhook-notifier-plugin/img/jenkins-build-trigger.png" width="80%"></p>
47+
48+
49+
### Example Trigger
50+
51+
We can see in the Response Tab of a GitHub Webhook Delivery that we notify the Git-Plugin with a specific sha1 commit id.
3052

3153
<p align="center"><img src="https://codeclou.github.io/jenkins-github-webhook-notifier-plugin/img/webhook-specific-commit-id.png" width="80%"></p>
3254

55+
And that triggers this exact id for the exact branch/tag that has been sent by the Webhook as JSON payload.
56+
57+
<p align="center"><img src="https://codeclou.github.io/jenkins-github-webhook-notifier-plugin/img/jenkins-build-by-commit-id.png" width="80%"></p>
58+
59+
60+
3361
-----
3462

3563
&nbsp;

0 commit comments

Comments
 (0)