Skip to main content

16 docs tagged with "script"

View all tags

Add Comments to a Task

In the Release GUI, you can add comments to any type of task in a template or release by opening the task and clicking Add comment.

Create a Jython Script Task

A Jython Script task contains a Jython script that is executed on the Release server. This is an automated task that completes when the script finishes successfully.

Declare Custom REST Endpoints

You can extend Release by creating new endpoints backed by Jython scripts. You can use this feature, for example, to integrate with other systems.

External Script Tasks

An External Script task points to a Jython or Groovy script that will be executed on the Release server. This is an automated task that completes automatically when the script finishes successfully. The task detects the language of the script by the file name extension.

Get a Value From a Map Variable

To get a value from a release variable of type key-value map and use the value in a text field, add a Jython Script task that gets the value and stores it in another variable.

Groovy Script Tasks

A Groovy Script task contains a Groovy script that is executed on the Release server. This is an automated task that completes when the script finishes successfully.

How to Find Identifiers for REST API

To use the Release REST API, you need to know the unique identifiers for templates, releases, phases and tasks. This topic explains where you can find them.

Remote Script Tasks Plugin

Remote Script tasks enable Release to execute commands on remote hosts using the Overthere framework, a Java library for manipulating files and executing processes on remote hosts.

Set a Precondition on a Task

The execution flow can be controlled by setting a precondition on a task. A precondition is an if statement for tasks, written in Jython script code.

SSL Options for HttpRequest

The code here is sample code only and it is not officially supported by Digital.ai. If you have questions, please contact the Digital.ai Support Team.

Test an Automated Task During Configuration

When you are configuring an automated task such as a Webhook, Script, or custom task, for the first time while creating a release template in Release, you usually need to test and tweak it a few times before the configuration is correct.

Using Release API in Scripts

Release has an API that you can use to manipulate releases and tasks. You can access the API from Jython Script tasks and from Release plugin scripts. This is an example of a simple Jython script in a Script task. It uses a script to add a comment to the task.