Correct migration of old documentation

This commit is contained in:
Florian Scholdei
2020-03-31 17:28:30 +02:00
parent ac66e6097e
commit fad91d5511
66 changed files with 2362 additions and 1931 deletions

View File

@@ -1,12 +1,11 @@
WebHook Plugin
--------------
# WebHook Plugin
### Installation
- Login in as administrator
- Open Plugins
- Install scm-webhook-plugin
- Restart your applicationserver
- Login in as administrator
- Open Plugins
- Install scm-webhook-plugin
- Restart your applicationserver
### Usage
@@ -15,27 +14,24 @@ You could now insert a new webhook for a repository. The url pattern is
the url of the remote webserver. It is possible to use placeholders in
the url:
- \${repository.id} - the id of the current repository
- \${repository.name} - the name of the current repository
- \${first.id} - the if of the first changeset in the push
- \${last.author.name} - the name of the author of the last changeset
in the commit
- `${repository.id}` - the id of the current repository
- `${repository.name}` - the name of the current repository
- `${first.id}` - the if of the first changeset in the push
- `${last.author.name}` - the name of the author of the last changeset in the commit
If you enable the \"Execute on every commit\" checkbox the last and
first patterns are not available, but you could use the commit pattern
e.g:
- \${changeset.id} - The id of the current changeset
- \${changeset.author.name} - The name of the author of the current
changeset
- `${changeset.id}` - The id of the current changeset
- `${changeset.author.name}` - The name of the author of the current changeset
If you need more informations about the available patterns have a look
at the javadoc. Ever method which starts with a get could be used in a
pattern (Repository.getName() would be \${repository.name}):
- [repository](http://docs.scm-manager.org/apidocs/latest/sonia/scm/repository/Repository.html "wikilink")
- [changeset, first and
last](http://docs.scm-manager.org/apidocs/latest/sonia/scm/repository/Changeset.html "wikilink")
- [repository](http://docs.scm-manager.org/apidocs/latest/sonia/scm/repository/Repository.html)
- [changeset, first and last](http://docs.scm-manager.org/apidocs/latest/sonia/scm/repository/Changeset.html)
Since version 1.4 of the webhook-plugin there is also a global
configuration at \"Config-\>General\". Global WebHooks are executed for