Set up Jenkins Connector

Preview

Set up Jenkins Connector from Dynatrace Hub to use Jenkins workflow actions.

  1. In Dynatrace Hub Hub, select Jenkins Connector.

  2. Select Install.

  3. Follow the procedures below to configure your Jenkins integration.

Step 1 Allow Jenkins for outbound connections

  1. Open the Settings app and go to Preferences > Limit Outbound Connections.
  2. Select Add item and add the domain of your publicly accessible Jenkins instance.
  3. Select Save changes.

This way, you can granularly control the web services to which your Dynatrace environment can connect.

Step 2 Grant permissions to Workflows

Some permissions are required by Workflows to run actions on your behalf. Other permissions are required by actions that come bundled with Jenkins Connector itself.

To fine-tune permissions granted to Workflows

  1. Go to Workflows and select Settings > Authorization settings.
  2. Select the following permissions besides the general Workflows permission.
  • Permissions needed for Jenkins workflow actions:
    • app-settings:objects:read

For more on general Workflows user permissions, see User permissions for workflows.

Step 3 Configure Jenkins connection

You need a configured connection for each of your Jenkins environments.

To configure a connection

  1. Open the Settings app and go to Dynatrace Apps > Jenkins Connections.

  2. Select Add item.

  3. Describe your Jenkins connection.

    • Connection name: Provide a meaningful name for your connection.
    • Jenkins URL: Add the URL of your Jenkins environment.
    • Username: Provide your Jenkins username.
    • Password: Provide your Jenkins password.
  4. Select Save changes.