Micro Focus Deployment Automation Plugin Template

Micro Focus Deployment Automation Plugin Template

One of the unique and maybe best features of Micro Focus Deployment Automation is its architecture that allows you the ability to create your "plugins" with limited coding knowledge. In this post we look at an example template that you can use to create your own plugins.


I have placed the template over on GitHub, to get started you will need to clone the repository using the following command:

git clone https://github.com/sda-community-plugins/plugin-template.git

This is a fully documented template that can use to make your own Micro Focus Deployment Automation plugin from. It illustrates how to achieve the following in your own plugin:

  • prompt for and retrieve the value of all types of properties in a step
  • set a property output for a step
  • check if your step is running on Windows or Unix/Linux
  • execute a command line program
  • call a REST API
  • parse the output of command line programs to determine success or failure
  • use the plugins-commons library to simplify your code
  • upgrade a plugin's version when adding or renaming properties and steps

Additional product documentation is provided in the Integration Guide. It is recommend that you read Chapter 7 in this document before you start writing your own plugin.

Creating your own plugin

To create your own plugin, copy or clone this repository and then update the following files and directories:

  1. pom.xml
    change the artifactId, name and description elements for your own plugin.

  2. src\main\groovy\:
    create any new groovy classes you want to use across multiple plugin steps here

    see ExampleCLIHelper.groovy and ExampleRESTHelper.groovy for some examples.

  3. src\main\zip\:
    create a new .grooyy file for each step you create.

    add an entry into plugin.xml for each new step (see below).

  4. src\main\groovy\zip\plugin.xml:
    change the element to refer to your plugin's id and name.

    change the element's attribute if you have released your plugin before (or installed it into Deployment Automation) and are now creating a new version.

    change the element.

    change the element to where you want your plugin to appear in the workflow designer palette. It is recommended that you try and keep it in the structure that has already been created.

    add additional elements making sure that the element refers to the new file you have created for your step.

  5. src\main\groovy\zip\info.xml:
    this file is only used for documentation purposes but you can change the information in here for completeness.

  6. src\main\grooy\upgrade.xml:
    you need to add entries in here when you create a new version of your plugin so that existing processes can be upgraded successfully you can specify new steps, renamed steps or properties - see the example provided

Building the plugin

To build the plugin you will need to clone the following repositories (at the same level as this repository):

mavenBuildConfig

plugins-build-parent

air-plugin-build-script

and then compile using the following command:

mvn clean package

This will create a .zip file in the target directory when you can then install into Deployment Automation from the System\Automation page.

 

 

Continue reading
2000 Hits
0 Comments

DA New Feature: Property Picker

DA New Feature: Property Picker

 

The following blog post describes a simple but highly effective enhancement that has been introduced in Deployment Automation 6.2.1.

 

The new Property Picker feature now available in Deployment Automation 6.2.1.

This simple enhancement brings 2 benefits

1.      Reduces errors caused by mis-typing a property value

2.      Gives an overview of the properties currently available

 

The attached document describes an overview of this new feature and demonstrates:

 

o   Using the Property Picker within the Process Designer

o   Using the Property Picker when defining a new Property

o   Configuring the Property Picker behaviour

 

 

See the attached document for more information and also the KBTV Video for a visual explanation of the functionality.

 

 

 

 

Continue reading
1596 Hits
0 Comments

UPDATED COURSE: 200 DA FOR RELEASE ENGINEERS

UPDATED COURSE: 200 DA FOR RELEASE ENGINEERS

Following the release of DA 6.2, 200 DA for Release Engineers  has been updated.

This course update contains the following additions and benefits:

 

  • New 6.2 features covered:
    • UI updates including Process Designer

    • Deployment Packages

  • End of module quiz assessments added:

    • Re-inforce learning

    • Provide additional group interaction

  • Additional lab exercise content covering:

    • Fail and Debug scenario  added

    • Improved UI navigation to harness UI improvements

    • Added Application Gates informationally and as a practical exercise

    • Added Pipelines informationally and as a practical exercise

    • Improved diagnostic checks

    • Limited step repeat scenarios – allow complex exercises to be completed more efficiently

    • Introduced systematic 15 point method for a new and fully functioning DA Application creation module

    • Deployment technology update including DA and CM Deployment comparison

       

  • Exercise improvements: more real life role-play work scenarios, simplified procedures

  • Content improvements: reformatting, improved layout and additional visual aids to understanding.

     


More information on the DA200 course can be found in the Course Outline.


More information on DA courses can be found in the:  Courseware Catalogue

 

 

 

 

 

 

 

 

 

Continue reading
1615 Hits
0 Comments

DA 6.2: Evaluation Tutorial - Deployment Packages

DA 6.2: Evaluation Tutorial - Deployment Packages

A new feature in Deployment Automation 6.2. Deployment Packages allow you to orchestrate a series of Application or Component Deployments within a single Deployment Package process.

 

The attached Evaluation Guide allows you to create a deployment package from scratch using some simple JSON Applications.

 

Step 1: Create the first application 
Step 2: Create the second application 
Step 3: Create a Deployment Package 
Step 4: Test and run the Deployment Package

 

See the Evaluation Guide for more details.

 

Please check out the related video.

 

 

 

Tags:
Continue reading
1116 Hits
0 Comments

New in DA 6.1.5: Published Views tutorial

New in DA 6.1.5: Published Views tutorial

DA 6.1.5 includes published views to allow more advanced and flexible reporting on the deployments requests made:

 

  • Application process (view_app_proc_requests)
  • Component process (view_comp_proc_requests)

 

This guide takes you through installing and accessing the views using the three database technologies. It also contains fixes to the existing DDL scripts that were released with 6.1.5

The attached document covers the following:

 

Introduction 
Step 1: Install the published views 
Step 2: View the published views 
Step 3: Run a sample query 
Further Task 
Further Information

 

 

Download the attached document for more information.

Continue reading
1571 Hits
0 Comments

Recent Tweets