Control-M for Jenkins


Jenkins enables you to automate building, testing, and deploying code for repetitive tasks in software deployment process.  

Control-M for Jenkins enables you to do the following:

  • Execute Jenkins pipelines.
  • Manage Jenkins credentials in a secure connection profile.
  • Connect to any Jenkins endpoint.
  • Introduce all Control-M capabilities to Control-M for Jenkins, including advanced scheduling criteria, complex dependencies, Resource Pools, Lock Resources, and variables.
  • Integrate Jenkins jobs with other Control-M jobs into a single scheduling environment.
  • Monitor the job status, results, and output of Jenkins jobs.
  • Attach an SLA job to the Jenkins jobs.

Control-M for Jenkins Compatibility

The following table lists the prerequisites that are required to use the Jenkins plug-in, each with its minimum required version.

Component

Version

Control-M/EM

9.0.21.100

Control-M/Agent

9.0.21.100

Control-M Application Integrator

9.0.21.100

Control-M Automation API

9.0.21.100

Control-M for Jenkins is supported on Control-M Web and Control-M Automation API, but not on the Control-M client.

To download the required installation files for each prerequisite, see Obtaining-Control-M-Installation-Files.

Setting up Control-M for Jenkins

This procedure describes how to deploy the Jenkins plug-in, create a connection profile, and define a Jenkins job in Control-M Web and Automation API.

Warning

Note

Integration plug-ins released by BMC require an Application Integrator installation. However, these plug-ins are not editable and you cannot import them into Application Integrator. To deploy these integrations to your Control-M environment, import them directly into Control-M using Control-M Automation API.

Before You Begin

  • Verify that Jenkins 2.387.1 or higher is installed.
  • Verify that Automation API is installed, as described in Automation API Installation.

Begin

  1. Create a temporary directory to save the downloaded files.
  2. Download the Jenkins plug-in from the Control-M for Jenkins download page in the EPD site.
  3. Install the Jenkins plug-in using the Automation API Provision service:
    1. Log in to the Control-M/EM Server machine as an Administrator and store the downloaded zip file in the one of the following locations (within several minutes, the job type appears in Control-M Web):
      • Linux: $HOME/ctm_em/AUTO_DEPLOY
      • Windows: <EM_HOME>\AUTO_DEPLOY
    2. Log in to the Control-M/Agent machine and run the provision image command, as follows:
      • Linux: ctm provision image Jenkins_plugin.Linux
      • Windows: ctm provision image Jenkins_plugin.Windows
  4. Create a Jenkins connection profile in Control-M Web or Automation API, as follows:
  5. Define a Jenkins job in Control-M Web or Automation API, as follows:
Warning

Note

To remove this plug-in from an Agent, see in Removing a Plug-in. The plug-in ID is JEN022024.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

Control-M