TaskExecution

TaskExecution
TaskExecution

Contains Task Execution details.

JSON Example
{
    "_durationInMicros": 1568625938000000,
    "_endTime": 1568625938000000,
    "_startTime": 1568625938000000,
    "failureMessage": "string",
    "id": "8365ef3b-8bf3-48aa-bd5d-7113fcff827c~0.0",
    "ignoreFailure": true,
    "input": [
        {
            "ip": "10.5.23.84",
            "script": "testScript.sh"
        }
    ],
    "name": "My-Name",
    "notifications": [
        {
            "eventGroup": "COMPLETED",
            "jiraResponse": {
                "ID": "VRCS-23",
                "link": "/link/to/Jira/issue/VRCS-23"
            },
            "providerType": "Email/Slack/Jira",
            "responseCode": 200,
            "responseMessage": 200,
            "stage": "string",
            "success": true,
            "task": "string"
        }
    ],
    "output": [
        {
            "deployedMachineIP": "10.108.35.54",
            "result": "true"
        }
    ],
    "preCondition": "${input.buildNumber} != '100'",
    "rollbackConfiguration": {
        "inputs": {
            "test": {
                "description": "test-value",
                "mandatory": false
            }
        },
        "name": "Rolback-Pipeline",
        "stage": "Dev-Stage",
        "task": "Publish-Image-Task"
    },
    "rollbackResponse": {
        "_link": "/codestream/api/executions/b80254a7-fcff-4918-ad88-501d08096337",
        "index": 4,
        "name": "My-Rolled-Back-Pipeline",
        "output": [
            {
                "key": "env",
                "value": "dev"
            }
        ],
        "status": "COMPLETED",
        "statusMessage": "Executing Stage0"
    },
    "status": "COMPLETED",
    "statusMessage": "Executing Task0",
    "type": "jenkins"
}
integer As int64 As int64
_durationInMicros
Optional

Execution duration of the Task Execution (in micros).

integer As int64 As int64
_endTime
Optional

End time of the Task Execution (in micros)..

integer As int64 As int64
_startTime
Optional

Start time of the Task Execution (in micros)..

object
endpoints
Optional

Endpoints that the Task refers to.

string
failureMessage
Optional

Failure message associated with a 'FAILED' task.

string
id
Optional

The id of this 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
name
Required

A human-friendly name used as an identifier For the Task.

notifications
Optional

List of configured Notifications for Task Events.

object
output
Optional

Map representing the Output properties for the Task.

string
preCondition
Optional

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

rollbackConfiguration
Optional

rollbackConfiguration

rollbackResponse
Optional

rollbackResponse

string
status
Optional

Execution status of the Task Execution.

Possible values are : NOT_STARTED, STARTED, RUNNING, CANCELING, WAITING, RESUMING, PAUSING, PAUSED, CANCELED, COMPLETED, FAILED, SKIPPED, QUEUED, FAILED_CONTINUE, ROLLING_BACK, ROLLBACK_FAILED, PREPARING_WORKSPACE, ROLLBACK_COMPLETED,
string
statusMessage
Optional

Execution status message of the Task Execution.

string
type
Optional

Type of the Task.