Cloud Services

DevOps Intelligence

Jenkins Plug in configuration
Published On Aug 27, 2024 - 10:12 AM

Jenkins Plug in configuration

DevOps Intelligence supports your use of Jenkins. This page describes the configuration requirements for this tool.
Jenkins is the leading open-source automation server, providing hundreds of plugins to support building, deploying, and automating any project.
For DevOps Intelligence to pull data from Jenkins, you must configure a Jenkins account.

Jenkins Plugin

The plugin must be downloaded and then installed. You may do so by visiting Artifactory Jenkins Plugin. Or from DevOps Intelligence tenant, follow these next steps to download the plugin from the File Server:
  1. Select
    Developer Console
    from the user icon menu at the top right of the screen and from the
    API Documentation
    tab select
    DevOps Intelligence
    from the Application drop-down menu, and
    file-server
    from the Service drop-down menu.
  2. Execute the /files API to get the list of files.
  3. Copy the name of the file to download. The file related to the Jenkins plugin has the following format:
    kyndryl-platform-devops-x.x.x-SNAPSHOT.hpi
    use the latest version of the plugin.
  4. Execute the (/
    files
    /{
    fileName
    }) API by clicking the
    Execute
    button.
  5. Select the
    Download file
    link in the response body.

Configuration Steps

Jenkins plug-in is an example of Bringing Your Own Build and Bring Your Own Test tools. By using this plug-in, the Jenkins host is able to send build data to the intelligence dashboard. The steps to configure the Jenkins plugin are as follows:
  1. Login to Jenkins Server.
  2. Upload DevOps Intelligence Plugin. Go to
    Manage Jenkins
    Manage Plugins
    Advanced Tab
    . Then, under
    Upload Plugin
    , select the plug-in to upload, which is the kyndryl-platform-devops-x.x.x-SNAPSHOT.hpi(i.e. Jenkins plugin
    The .hpi file can be downloaded from file-server or artifactory option.
  3. Restart the Jenkins server. Check on
    Installed
    tab if the plug-in is enlisted (search for DevOps Intelligence).
  4. Add the credentials to Jenkins.To accomplish this, create a token in DevOps Intelligence in the build tool (a service token).
    Enter the credential username as the token name created in DevOps Intelligence and the password as the actual service token.
    Please select the following menu selections for this step: Go to
    DevOps Intelligence Dashboard
    Settings & Utilities
    Tools configuration →
    Token
    → Select the token type as
    Build
    or
    Test
    Copy the token value.Once the token is obtained, perform the following menu selection to add the credentials to Jenkins:
    Jenkins Dashboard
    Credentials
    System
    Global Credentials
    Add Credentials
    for DevOps Intelligence build or test.The credentials page will open, Select Kind as Username and Password, Scope as Global and give the build or test token generated in DevOps Intelligence as password
  5. Configuring plugin in the Existing Jobs (for projects).To accomplish this, select any job to configure the installed plugin, and then select
    Configure
    Post-Build Actions
    .After that, select the
    Publish build information to DevOps Intelligence
    option from the
    Add-Post-Build Action
    drop-down.Then, select
    Apply
    and
    Save
    .
  6. Build the Project to publish the build data to DevOps Intelligence. The selections to be made here are:
    Project
      →
    Build Now
    .
Do you have two minutes for a quick survey?
Take Survey