This document will outline the steps needed to configure a webhook & also show how to trigger a pipeline using the webhook.
Steps to configure Webhook in pipelines
Login into the Opsera Portal and Navigate to any pipeline where webhook is needed. Go to Workflow tab as show below.
On the workflow configuration, Click on ‘Settings’ icon from ‘Start of Workflow’ pipeline step
It will open the configuration form.
Select the Platform and click on “ Register Git account “ - It will open the configuration values one by one. Select each one based on your requirement (Explanation shown in the screenshot below).
Click on ‘Enable Event Based Trigger’ checkbox and then click on ‘Register Webhook’ button
Webhook configuration will be saved in Opsera Pipeline
At the same time, Webhook will be automatically configured in respective SCM Tool
How to trigger Webhook in pipelines
Here are the steps show a successful trigger of an Opsera Pipeline via commit on the SCM tool -
branch after the successful Webhook configuration.
Commit has been made on the SCM Tool - branch
Opsera pipeline is triggered automatically, after a commit has been made on the SCM Tool - Branch
The same can also be verified with SCM Tool – Webhook history page – where a successful commit event trigger will be registered
The above steps indicate the successful configuration and trigger of Post commit Webhook.