Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasbjerre committed May 3, 2017
1 parent 0c511b9 commit cbf75eb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 15 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Generic Webhook Plugin Changelog
Changelog of Generic Webhook Plugin.
## Unreleased
### No issue
**doc**

[190bc60b1e6f5e8](https://github.com/jenkinsci/generic-webhook-trigger-plugin/commit/190bc60b1e6f5e8) Tomas Bjerre *2017-05-02 19:00:19*

## 1.9
### GitHub [#4](https://github.com/jenkinsci/generic-webhook-trigger-plugin/issues/4) Did not find any jobs to trigger!
**Adding troubleshooting section to readme #4**

Expand All @@ -9,7 +15,7 @@ Changelog of Generic Webhook Plugin.
### GitHub [#5](https://github.com/jenkinsci/generic-webhook-trigger-plugin/issues/5) Doesn't work with Pipelines
**Enabling pipeline multibranch to be triggered #5**

[7d4aae360dcbf66](https://github.com/jenkinsci/generic-webhook-trigger-plugin/commit/7d4aae360dcbf66) Tomas Bjerre *2017-05-02 18:52:36*
[21af9ce2e996f49](https://github.com/jenkinsci/generic-webhook-trigger-plugin/commit/21af9ce2e996f49) Tomas Bjerre *2017-05-02 18:54:05*

## 1.8
### No issue
Expand Down
35 changes: 21 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This means it can trigger on any webhook, like:
* [GitLab](https://docs.gitlab.com/ce/user/project/integrations/webhooks.html)
* [Gogs](https://gogs.io/docs/features/webhook)
* [Assembla](https://blog.assembla.com/AssemblaBlog/tabid/12618/bid/107614/Assembla-Bigplans-Integration-How-To.aspx)
* An many many more!
* And many many more!

The original use case was to build merge/pull requests. You may use the Git Plugin as described in [this blog post](http://bjurr.com/continuous-integration-with-gitlab-and-jenkins/) to do that. There is also an example of this on the [Violation Comments to GitLab Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Violation+Comments+to+GitLab+Plugin) page.

Expand Down Expand Up @@ -93,24 +93,31 @@ echo $VARIABLE_FROM_REQUEST
}
```

## Pipeline Plugin
## Pipeline

This plugin can be used with the Pipeline Plugin:
This plugin can be used with the [Pipeline Multibranch Plugin](https://jenkins.io/doc/pipeline/steps/workflow-multibranch/#properties-set-job-properties):

```
properties([
pipelineTriggers([
[$class: 'GenericTrigger',
genericVariables: [
[expressionType: 'JSONPath', key: 'variable1', value: 'expression1'],
[expressionType: 'JSONPath', key: 'variable2', value: 'expression2']
],
regexpFilterText: '',
regexpFilterExpression: ''
]
node {
properties([
pipelineTriggers([
[$class: 'GenericTrigger',
genericVariables: [
[expressionType: 'JSONPath', key: 'variable1', value: 'expression1'],
[expressionType: 'JSONPath', key: 'variable2', value: 'expression2']
],
regexpFilterText: '',
regexpFilterExpression: ''
]
])
])
])
stage("build") {
sh '''
echo Build
'''
}
}
```

# Plugin development
Expand Down

0 comments on commit cbf75eb

Please sign in to comment.