New in 14.2: Pulse: Create an EXTENDED example custom expert tutorial

0 Likes

Pulse has gone through some major functional enhancements in 14.2. In 14.1 it was only possible to trigger a Jenkins Build from a delivery. In 14.2 there is a whole range of experts that call various development tools that report on and help control the quality of deliveries made into the CM repository.

 

 In 14.2, Pulse comes with a comprehensive array of plugins that can be used, these include:

  • Checkstyle: enforces coding standards.
  • Jenkins: a continuous integration server that you can use with Pulse to execute, and report on, builds of changesets as they are delivered.
  • Kiuwan: measures, analyzes, and verifies the quality of your code.
  • PMD: analyzes source code and finds common programming bugs.
  • SDA Deployment: imports and deploys a component using Serena Deployment Automation.
  • SDA Generic Process: runs a generic process in Serena Deployment Automation.
  • SonarQube: inspects the quality of your code.
  • Dependency Vulnerabilities: finds third party dependencies in your code that may have known security vulnerabilities.

There may be a specialised third party tool or in house tool that would also be beneficial to determining the health of a build.

In an extension to the original Blog: New in 14.2: Pulse: Create an example custom expert tutorial, this tutorial describes how you can extend the existing expert to do the following: 

1. Present an additional parameter for the expert in the Pulse UI by adding an additional JSON file
2. Additional logic in the Groovy script to utilise the parameter supplied

The following PDF document describes the steps required to create a sample expert called custom1, these steps can also be used as a template for creating your own expert.

Step 1: Create an additional JSON file 
Step 2: Extend the groovy file 
Step 3: Modify the Custom1 Expert chain 
Step 4: Deliver the file to the stream with the text ERROR in the comment 
Step 5: Deliver the file to the stream without the successful comment  

Please note: The following resolution is specific to the 14.2 version of CM and this may well change for custom expert implementations in future versions of CM.

Click on the following LINK to access the document.

Labels:

How To-Best Practice
Comment List
Related
Recommended