Skip to main content
Version: Release 24.3

Jenkins Container Plugin

The Jenkins container plugin allows you to run a Jenkins job from Release.

important

You must set up a connection to the Jenkins server before adding Jenkins task. For more information, see Set up Connection to Jenkins Server.

note

In the release flow editor, Container tasks have a blue border.

Prerequisites

For Jenkins integration, you need the following:

  • Jenkins server running and accessible via HTTP(s)
  • Digital.ai Release Runner setup to run the container tasks

Set up Connection to Jenkins Server

  1. From the navigation pane, under CONFIGURATION, click Connections.
  2. Under HTTP Server connections, next to Jenkins: Server (Container), click add button. The New Jenkins: Server (Container) page opens.
  3. In the Title field, enter the name of the Jenkins server. This name will display in Jenkins tasks.
  4. In the URL field, enter the URL of the Jenkins server.
  5. Two authentication methods available, do one of the following:
    • enter the server login Username and Password.
    • enter the server login Username and API token.
  6. If required, enter proxy details.
  7. To test the connection, click Test.
  8. To save the configuration, click Save.

Create Jenkins server

Build (Container)

The Build (Container) task is used to run a Jenkins job that is configured on the Jenkins server.

  1. In the release flow tab of a Release template, add a task of type Jenkins > Build (Container).
  2. Click the added task to open it.
  3. In the Capabilities field, enter a value that matches the capability set for your Runner. This will help you to route jobs to that particular Runner.
  4. In the Server field, select the Jenkins server where Release connects.
  5. In the Job Name field, enter the name of the job that will be triggered.
  6. In the Job Parameters field, enter the Jenkins job's required parameters. You can provide them as delimited by ~~ (for example, paramName1=value1~~paramName2=value2).
  7. In the Branch field, enter the branch name. Note that, this is mandatory for multibranch pipelines and ignored for others.

Build (Container)