Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Opsera Salesforce Pipeline now supports webhook-based start events.

With this functionality user can manage what branches the trigger event will occur off of. User can select a primary and secondary branch in this form and any time a commit occurs on one of these branches, the pipeline will be triggered.

 

Note: When a pipeline is running and user makes a commit, the pipeline will finish its current run and only IF the run was successful, it will run a second time. If the user makes multiple commits during a run, the pipeline will always use the latest most recent commit for the next run. The pipeline will only run once after the current run no matter how many run requests it gets for that time period.

Salesforce The salesforce pipeline webhook setup contains 3 steps:

Table of Contents

1. Source Repository Configuration in Start of Workflow

...

  1. In GitHub, navigate to the selected repository containing the branches the trigger event will occur off of. Click on ‘Settings’ to access webhook settings.

  2. In Settings, select ‘Webhooks’ then click ‘Add Webhook’ button.

  3. Fill out the form, pasting the copied URL from Source Repository step configurations in the Payload URL.

Info

IMPORTANT: ‘Content type’ by default is set to ‘application/x-www-form-urlencoded’. You must select ‘application/json’ from the drop down dropdown in order for webhook to trigger the pipeline.

4. Select ‘Add webhook’ button to save configurationthe settings.

3. Salesforce Package Job Creation

...

Step Configuration

Salesforce pipeline webhook events require further configuration within the first pipeline step in the Workflow - the Salesforce Package Job Creation step (Using Jenkins tool with a Salesforce package jobJob and SCM Account). The Account in the Jenkins job tool must also contain an Account including the repository selected in the Source Repository step. The Repository and Branch selected in this step must match those selected in the Source Repository step or this step (pre-start action in pipeline activity logs) will fail and the modified branch will not contain the altered files.

  1. In the first pipeline step Step Setup, select ‘Jenkins Tool’.

  2. Once the Jenkins Tool is selected, continue with Step Configuration:
    Jenkins Tool -
    Jenkins Job Type -
    Specify Salesforce Credentials -
    Account -
    Repository -
    Branch -

...