Configure Jenkins to send real time notifications for your pipeline executions to DevOps Change Velocity.

Before you begin

Role required: Jenkins admin

Procedure

  1. Install the ServiceNow DevOps plugin from the Jenkins Marketplace by navigating to Manage Jenkins > System configuration > Plugins in your Jenkins instance.
  2. Search for ServiceNow DevOps Plugin and select it, and then select Install.

Configure webhooks manually for Jenkins

Configure webhooks in Jenkins to send sync notifications to the DevOps Change Velocity application.

Before you begin

Role required: sn_devops.admin or sn_devops.tool_owner in DevOps Change Velocity, Jenkins admin

About this task

You can add a total of ten ServiceNow DevOps configurations. For example, you can configure Jenkins connections for your Development, Testing, Production instances, and so on.

If you are an upgrading customer, you must download and install the latest Jenkins plugin to enable multiple ServiceNow configurations. After installation, your existing configuration will be retained and made the default configuration.

In the ServiceNow DevOps Configuration section in Jenkins, the values in the Name field and the combination of the Instance URL and Orchestration Tool ID fields must be unique.

If you choose to automatically configure a tool from ServiceNow, then the existing set up for ServiceNow DevOps Configuration will be over-written in Jenkins.

If DevOps Config is installed, you will only be able to configure Jenkins manually.

Procedure

  1. In DevOps Change Velocity, choose Configure manually when configuring the tool instance to send data.
    Configure webhooks automatically.
  2. Select Copy in the appropriate field to copy the value to your clipboard.

    The field label changes to Copied, but you can copy multiple times.

    Configure webhooks manually.
  3. In Jenkins, navigate to Manage Jenkins > System configuration > Manage Plugins > Configure System.
  4. In the ServiceNow DevOps Configuration section, select Add.
    Note: You can add multiple connections by selecting Add for each new configuration.
  5. Configure the plugin by filling in the fields.

    When enabled, Jenkins starts sending events to DevOps as inbound events.

    Note: Values are case-sensitive.

    Fields to be configured in Jenkins.

  6. Select Test Connection.
    Verify that the connection successful message displays.
    • If you've added basic authentication credentials, on successful connection, you will see the message: Connection using 'Credentials' is successful.
    • If you've added the secret token, on successful connection, you will see the message: Connection using 'Secret Credentials' is successful.
  7. Select Apply to apply the changes and select Save.