The CA Agile Central plugin for Jenkins enables teams to use CA Agile Central to see the build status for the projects they are working on, display charts on build health, and trace code commits to builds. The plugin achieves this by populating build data into CA Agile Central.
When used in conjunction with a Version Control System (VCS) and a CA Agile Central VCS connector, the Jenkins plugin will link Builds to ChangeSets as well. The CA Agile Central VCS connector will parse the commit message, and if CA Agile Central artifacts are mentioned (such as DE27), the VCS connector will link the artifact to the ChangeSet for the change committed to the SCM system. When the next Jenkins build occurs, the Jenkins plugin will link the ChangeSet to the Build in CA Agile Central. The
is traceability from Story/
to ChangeSet to Build.
Additionally, custom dashboards can be built to display Build Health and Traceability apps to manage the health of continuous build/test pipelines across the enterprise.
This install guide includes:
The following sections describe the software requirements.
- We currently support Jenkins 2.7.1. (Due to a defect in Jenkins versions 1.598 to 1.609, these versions cannot be used with this plugin on any of the platforms listed below.)
- Testing has been done on Ubuntu, CentOS, Mac OS X, and Windows Server 2012. These operating systems are recommended.
SCM System Support
- SCM systems are necessary in order to link ChangeSets to Build objects in CA Agile Central so that Stories/Defects can be traced to Builds.
- Certified to support Git, Subversion, and Mercurial.
- A Jenkins plugin for the SCM system must be installed in Jenkins. Jenkins has a built-in Subversion plugin, and optional plugins for Git and Mercurial are available on the Jenkins CI site.
- The CA Agile Central VCS connector for the appropriate SCM must be installed in order for ChangeSets to be populated in CA Agile Central (Git, Subversion, Mercurial).
- NOTE*** The Jenkins plugin does not support SSO at this time
To download the connector, follow the steps here.
Installation of the plugin follows these basic steps:
- Install the Ruby Runtime plugin into Jenkins (one time)
- Install the CA Agile Central Build Notifier plugin into Jenkins (one time)
- Configure the plugin’s global settings (one time)
- Configure a Jenkins job to publish build results into CA Agile Central (for each job)
Set up CA Agile Central
Verify that your target
Configuration object has BuildandChangsetEnabled set to true.
Your CA Agile Central
needs to enable this for your target workspace. If it is not enabled, the connector will work, but you will not be able to see any of the changeset/change information that is associated with your Rally
The workspace administrator must edit the workspace and do the following:
- Select the Setup icon .
- Select the Workspaces & Projects
- On the Workspaces & Projects summary
, select your workspace.
- From the Actions drop-down, select Edit.
- On the workspace editor, select the checkbox labeled Enable Build and changeset.
- Select Save & Close.
If you are unfamiliar with Jenkins plugins, consult the Jenkins documentation for plugins to become familiar with the concept and how to install plugins in Jenkins.
Upgrading the Plugin from a Prior Version to the 4.0.1 Version
If you were using the Jenkins plugin for CA Agile Central v4.0.0 or below, you should follow these steps before installing v4.0.1 of the Jenkins plugin:
- Make a note of all of your Jenkins settings, at both the global and job levels. You will need to re-enter these after installing the new plugin.
- Uninstall the CA Agile Central plugin for Jenkins (Or Rally plugin) from Jenkins
- Follow the instructions below to install the plugin into Jenkins
Installing the Plugin into Jenkins on Linux, Mac OS X, and Windows Server 2012
This is also found on the README that comes with the plugin.
You may need to restart Jenkins.
Follow these steps:
- In the Jenkins interface, navigate to Manage Jenkins, Manage Plugins.
- Select the Advanced tab.
- In the Upload Plugin section, select Choose File, and select ruby-runtime-plugin-0.14.hpi.
- Select Upload. Jenkins displays a status screen that shows the plugin installing.
- Install the Jenkins CA Agile Central Publisher plugin following the same steps as above.
- Navigate to the Manage Plugins screen and select the Advanced tab.
- In the Upload Plugin section, select Choose File, then select the agile-central-build-publisher-1.0.1.hpi. Jenkins displays a status screen, which shows the plugin installing.
Once the plugin is installed, it needs to be configured at the global level, as well as once for each Jenkins job.
Configuring Global Settings
Follow these steps:
- In the Jenkins web interface, go to Manage Jenkins, System Configuration.
- In the CA Agile Central Build Publisher section, complete the following fields:
- CA Agile Central Server: Enter rally1.rallydev.com in the text box. If you are evaluating CA Agile Central, enter trial.rallydev.com. If you are running an On-Premises instance, enter the name of your CA Agile Central server.
- CA Agile Central Username and CA Agile Central Password: The username and password for a CA Agile Central user with access to the workspace in which you want to publish Jenkins build results.
- If you access CA Agile Central through a proxy server, select Advanced in the CA Agile Central Build Publisher Proxy Settings section to display the fields used to specify the proxy:
- Proxy Server: the name or the IP address of the proxy server
- Proxy Port: The port number to use on the proxy server
- Proxy Username (optional): A valid username for the proxy server, if it requires
- Proxy Password (optional): A valid password for the proxy server, if it requires authentication
Configuring a Jenkins Job to Publish Build Results
Any free-style or maven2 job in Jenkins can be configured to publish a BuildDefinition & Build in CA Agile Central. Every project in CA Agile Central has one or more BuildDefinitions that can be used to publish a build status indicator.
- Go to the Jenkins job you want to configure to publish build results to CA Agile Central, then select Configure in the upper-left.
- In the Post-build Actions section of the page select the Add post-build action drop-down and select the CA Agile Central Build Publisher option.
- In the CA Agile Central Build Publisher section of the page, enter the name of the CA Agile Central workspace and project in which the build results are to be published ( note that the user you entered in the global config must have
to the workspace you specify). Known issue: If publishing to a sub project the top level project will be entered for project. The plugin will display the following error if sub project is referenced: ERROR: [Rally Publisher] Unable to post Build info to Rally for Test1 build #35, unable to find default project SubProj1
- Select Save on the configuration page.
The next time the job runs, the plugin will search for a BuildDefinition in CA Agile Central with the same name as the Jenkins job. If it is not found, one will be created. Each time the job runs, a Build object will be created in CA Agile Central and linked to this BuildDefinition.
Repeat these steps as necessary to configure additional Jenkins jobs to publish results to other CA Agile Central projects.
Viewing Build Information in CA Agile Central
You can view build information in reports or custom dashboards.
Viewing Build Health in Reports
Build health reports are available in the Reports → Reports page in Rally. Specifically, Build Health and Build Health by
Creating Custom Build Dashboards
When building custom dashboards, you can select different Build dashboard apps, including Build Health and Build Health by Iteration.
Use the following command to start Jenkins in debug mode and view messages:
java -Drally.debug="true" -jar jenkins.war --httpPort=9000
If you are having trouble with the plugin, view the console output from your job or the application server log that is running Jenkins. To view the console output from the job, select a
in the Jenkins web interface, then select Console Output on the resulting Jenkins page.
Tomcat Server Log
If you are using Tomcat, navigate to [TOMCAT_INSTALL_DIR]/logs/catalina.out to view the application server log.
Ensure that the CA Agile Central Username and Password entered into the Global Configuration for the plugin are correct and haven’t changed.
Once the Jenkins plugin for CA Agile Central has run, the relationship between the data objects inside CA Agile Central is the following:
Historical Version Highlights
- Context identification parameter added.
- Global settings retained and available restarting Hudson.
- Support of BuildDefinition and Build objects in Rally.
- Support for Hudson versions through 1.381.
- Support for Maven2 project types in Hudson.
- Support for Git and Perforce as SCM options.
- Proxy settings for Rally are persisted
- Duration field in Build objects populated with Jenkins provided value.
- Added debug flag.
||End of Support
|Jenkins 2.x and later
|Jenkins 1.642.4 to 1.651.2
|Jenkins 1.42 to 1.642.3
|Jenkins 1.41 and below; any Hudson version
- 4.0.1 18-May-2016
- SSL error connecting to Agile Central caused by older ruby-runtime-plugin.
- 4.0.0 16-November-2015
- 3.0.6 25-February-2015
- Known issues:
- Plugin does not translate Chinese characters for Project name correctly.
- Fix abort due to SSL failure
|Jenkins Plugin 4.0.1
||Jenkins Plugin 4.0.0
- Rebuilt with new architecture
- Fixes defect: special characters and trailing spaces in project names
|Jenkins Plugin 3.0.6
|1.0 - 2.4.1