Use basic authentication to authenticate CICD REST API calls on a ServiceNow instance.

Before you begin

  • Request Integration Hub subscription
  • Activate Continuous Integration and Continuous Delivery (CICD) spoke
  • Role required: admin or sn_cicd.sys_ci_automation

Create Credential records for the Continuous Integration and Continuous Delivery (CICD) spoke

Create Credential records to the ServiceNow instance. The Continuous Integration and Continuous Delivery (CICD) spoke connection and credential alias uses these credentials to authorize actions.

Before you begin

Role required: admin

Procedure

  1. Navigate to All > Connections & Credentials > Credentials.
  2. Click New.
    The system displays the message What type of Credentials would you like to create?.
  3. Select Basic Auth Credentials.
    A blank Basic Auth Credentials form displays.
  4. Enter these values.
  5. Click Submit.

Create Connection records for the Continuous Integration and Continuous Delivery (CICD) spoke

Create Connection records to your ServiceNow instance. The Continuous Integration and Continuous Delivery (CICD) spoke connection and credential alias uses these connections to perform actions on your ServiceNow instance.

Before you begin

Role required: admin.

Procedure

  1. Navigate to All > Connections & Credentials > Connection & Credential Aliases.
  2. Open for the record for CICD.
  3. From the Connections tab, click New.
    The system displays a blank HTTP or HTTPS Connection form.
  4. Enter these values.
    Field Value required
    Name Enter any name to uniquely identify the connection record. For example, enter CICD Connection.
    Credential Select the Credential record you created for CICD. For example, select CICD Credentials.
    Connection URL The URL of the ServiceNow instance on which the spoke runs actions and flows.
  5. Click Submit.