Using Scripts to Automate Release Process Tasks

You can write your own Groovy scripts to automate release process tasks. Sample scripts to help you get started are located here:

{SBM}Common\Tomcat 7.0\server\default\webapps\rlc\WEB-INF\classes\scripts\Samples

createReleasePackageSample.groovy

This sample script:

Limitations:

Example:

 {
   "stringParam0": "Release Package Name",
   "stringParam1": "Release Package Description",
   "stringParam2": "Release Type Name",
   "stringParam3": "Deployment Path Name",
   "stringParam4": "Task Template Name",
   "stringParam5": "Release Manager Name",
   "stringParam6": "Release Engineer Name",
   "stringParam7": "Provider Instance UUID",
   "stringParam8": "Release Package Project",
   "arrayParam0": {
      "items": ["artifactId1", "artifactId1", "artifactId2"]
   },
   "arrayParam1": {
      "items": ["Task Title1", "Task Title2", "Task Title2"]
   },
   "path": "createReleasePackageSample.groovy",
   "version": "Samples"
 }

Results:

configureTaskCollectionSample.groovy

This sample script:

Limitations:

Example:

 {
   "stringParam0": "Task Collection Id",
   "stringParam1": "Provider Instance UUID",
   "arrayParam0": {
      "items": ["artifactId1", "artifactId1", "artifactId2"]
   },
   "arrayParam1": {
      "items": ["Task Title1", "Task Title2", "Task Title2"]
   },
   "path": "configureTaskCollectionSample.groovy",
   "version": "Samples"
 }

Results:

Artifact IDs

You must pass the correct artifact ID to each plugin:

Related Topics

Scheduling into Environments

About the Environment Process App

Scheduling Deployment Tasks

Scheduling Release Trains