Task

Task
Task

Represents the individual Tasks in a Pipeline.

JSON Example
{
    "endpoints": [
        {
            "deployedMachineIP": "10.108.35.54",
            "result": "true"
        }
    ],
    "ignoreFailure": true,
    "input": [
        {
            "ip": "10.5.23.84",
            "script": "testScript.sh"
        }
    ],
    "preCondition": "${input.buildNumber} != '100'",
    "tags": [
        {
            "key": "env",
            "value": "dev"
        }
    ],
    "type": "jenkins"
}
object
endpoints
Optional

Map representing the Output properties for the Task.

boolean
ignoreFailure
Optional

Ignores the failure of the Task execution if set to true, and continues with the Pipeline execution.

object
input
Optional

Map representing the Input properties for the Task.

string
preCondition
Optional

The Task is executed only if this field evaluates to true.

array of string
tags
Optional

A set of tag keys and optional values that were set on on the resource.

string
type
Optional

Type of the Task.