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.
Setting Up Control-M for Jenkins
This procedure describes how to install the Jenkins plug-in, create a connection profile, and define an Jenkins job in Helix Control-M and Automation API.
Before You Begin
- Verify that Jenkins 2.387.1 or higher is installed.
- Verify that Automation API is installed, as described in Setting up the API.
- Verify that Agent version 9.0.21.080 or later is installed.
Begin
- On the Agent host, set the Java environment variable by running one of the following commands through a command line:
- Linux:
- Bourne Shell/Bash: export BMC_INST_JAVA_HOME=<java_11_directory>
- csh/tcsh: setenv BMC_INST_JAVA_HOME <java_11_directory>
- Windows: set BMC_INST_JAVA_HOME="<java_11_directory>"
- Linux:
- Run one of the following API commands:
- For a fresh installation, run the following provision image command:
- Linux: ctm provision image Jenkins_plugin.Linux
- Windows: ctm provision image Jenkins_plugin.Windows
- To upgrade, run the following command:
ctm provision agent::update
- For a fresh installation, run the following provision image command:
- Create a Jenkins connection profile in Helix Control-M or Automation API, as follows:
- Helix Control-M: Creating a Centralized Connection Profile with Jenkins Connection Profile Parameters.
- Automation API: ConnectionProfile:Jenkins
- Define a Jenkins job in Helix Control-M or Automation API, as follows:
- Helix Control-M: Creating a Job with Jenkins Job parameters.
- Automation API: Job:Jenkins
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*