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
- From the navigation pane, under CONFIGURATION, click Connections.
- Under HTTP Server connections, next to Jenkins: Server (Container), click . The New Jenkins: Server (Container) page opens.
- In the Title field, enter the name of the Jenkins server. This name will display in Jenkins tasks.
- In the URL field, enter the URL of the Jenkins server.
- Two authentication methods available, do one of the following:
- enter the server login Username and Password.
- enter the server login Username and API token.
- If required, enter proxy details.
- To test the connection, click Test.
- To save the configuration, click Save.
Build (Container)
The Build (Container) task is used to run a Jenkins job that is configured on the Jenkins server.
- In the release flow tab of a Release template, add a task of type Jenkins > Build (Container).
- Click the added task to open it.
- 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.
- In the Server field, select the Jenkins server where Release connects.
- In the Job Name field, enter the name of the job that will be triggered.
- 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).
- In the Branch field, enter the branch name. Note that, this is mandatory for multibranch pipelines and ignored for others.