Functions are groovy scripts defining what to do which are executed when a webhook is received by FlexDeploy. Webhooks are matched to a function by its URI. Each webhook provider may have multiple functions associated with it. depending on the action that occurred in the provider application.
Viewing Webhook Functions
Access functions by navigating to Administration → Integrations → Webhooks.
{{screenshot of demo}}
Creating/Editing Webhook Functions
...
Groovy Script
The Groovy script shown for the function will be executed when a webhook is received at the listed uri from that has been matched to the selected provider. More function examples can be found {{link}}. The editing window has capabilities for undo, redo, find, find and replace, and go to line. There are a variety of built-in context variables and methods available to use in this script. Type Ctrl + Space for suggestions on variables and methods that can be used.
Examples
- GitHub
- Create/delete stream automatically
- Jira
- Manage release from story
- GitLab
- Build on push
- Slack
- ?? may wait on this one until we have capability to do approvals from slack