Skip to content

Commit

Permalink
documenting batched builds #171
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed Aug 3, 2020
1 parent c2204be commit 3e61950
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ The token can be supplied as a:
- Token header: `curl -vs -H "token: abc123" http://localhost:8080/jenkins/generic-webhook-trigger/invoke 2>&1`
- _Authorization_ header of type _Bearer_ : `curl -vs -H "Authorization: Bearer abc123" http://localhost:8080/jenkins/generic-webhook-trigger/invoke 2>&1`

## Trigger exactly one build

Jenkins will batch build of a job if those builds have same parameters. If this plugin gets invoked by many webhooks at the same time it may trigger only one build and they will all have *Generic Cause*.

You can solve this by using different jobs or you can make the one job parameterized. And resolve one of the parameters with something unique from the webhook. This will make each trigger unique and Jenkins will not batch the builds into one build.

The section on *Default values* above explains the parameters.


## Whitelist hosts

Whitelist can be configured in Jenkins global configuration page. The whitelist will block any request to the plugin that is not configured in this list. The host can be **empty** to allow any, **static IP**, **CIDR** or **ranges**:
Expand Down

0 comments on commit 3e61950

Please sign in to comment.