Get release stage pipeline run

Updated at:

Applicable versions

Centralized and regional

Service endpoints and authorization

  • Get service endpoint: Replace {domain} in the API request syntax.
  • Get personal access token.
  • Get the organization ID: Required only for the centralized version. The organization ID is available on the Basic Information page of the organization management console.

Product

Resource

Required permission

Application Delivery

release stage

Read-only

Request syntax

Centralized version

GET https://{domain}/oapi/v1/appstack/organizations/{organizationId}/apps/{appName}/releaseWorkflows/{releaseWorkflowSn}/releaseStages/{releaseStageSn}/executions/{executionNumber}:getPipelineRun

Regional version

GET https://{domain}/oapi/v1/appstack/apps/{appName}/releaseWorkflows/{releaseWorkflowSn}/releaseStages/{releaseStageSn}/executions/{executionNumber}:getPipelineRun

Request headers

Parameter

Type

Required

Description

Example

x-yunxiao-token

string

Yes

Your personal access token.

pt-0fh3****0fbG_35af****0484

Request parameters

Parameter

Type

In

Required

Description

Example

appName

string

path

Yes

The application name.

my-web-service

releaseWorkflowSn

string

path

Yes

The unique identifier of the release workflow.

3f472a12b15d4f418ad6227bb85f787c

releaseStageSn

string

path

Yes

The unique identifier of the release stage.

6b4c53eee9a842c6a11235b29d002a81

executionNumber

string

path

Yes

The ID of the pipeline execution. This corresponds to the pipelineRunId value returned by the ExecuteChangeRequestReleaseStage operation.

1

organizationId

string

path

  • Yes: centralized version

  • No: regional version

The organization ID.

ec766e63aee3437d9a51f334d6exe671

Request examples

Centralized version

curl -X 'GET' \
  'https://{domain}/oapi/v1/appstack/organizations/ec766e63aee3437d9a51f334d6exe671/apps/my-web-service/releaseWorkflows/3f472a12b15d4f418ad6227bb85f787c/releaseStages/6b4c53eee9a842c6a11235b29d002a81/executions/1:getPipelineRun' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Regional version

curl -X 'GET' \
  'https://{domain}/oapi/v1/appstack/apps/my-web-service/releaseWorkflows/3f472a12b15d4f418ad6227bb85f787c/releaseStages/6b4c53eee9a842c6a11235b29d002a81/executions/1:getPipelineRun' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example

-

object

The response object.

pipelineRun

object

The details of the pipeline run.

createTime

string

The time when the pipeline run was created.

2024-01-01 00:00:00

creator

string

The Alibaba Cloud DevOps account ID of the user who created the pipeline run.

61c92a37ae805dbacc5b9f78

creatorAccountId

string

The account ID of the creator.

creator-account-id

modifier

string

The Alibaba Cloud DevOps account ID of the user who last modified the pipeline run.

61c92a37ae805dbacc5b9f78

modifierAccountId

string

The account ID of the last modifier.

modifier-account-id

pipelineId

string

The pipeline ID.

123

pipelineRunId

string

The ID of the pipeline run.

123456

sources

array

The code sources that triggered the pipeline run.

-

object

An input source.

data

object

Details of the code source, such as the repository, branch, and commit.

branch

string

The branch of the source code repository.

master

commit

string

The commit ID.

commit

repo

string

The URL of the source code repository.

https://codeup.aliyun.com…

sign

string

The signature of the source.

sign

type

string

The type of the source.

type

stageTopo

array

The groups of pipeline stages that define the execution order. Stages within the same group (inner array) run in parallel. The groups (outer arrays) run sequentially.

-

array[string]

stages

array

A list of stages in the pipeline run.

-

object

A stage.

index

string

The index of the stage. This value maps to an element in stageTopo and determines the execution order.

Group0-Stage0

name

string

The name of the stage.

stage-name

stageInfo

object

Stage execution details.

endTime

number

The timestamp when the stage execution ended.

123

jobs

array

A list of jobs within the stage.

-

object

A job.

actions

array

A list of actions within the job.

-

object

An action.

disable

boolean

Indicates whether the action is disabled.

true

params

string

A JSON string of action-specific parameters.

{}

type

string

The type of the action.

type

endTime

number

The timestamp when the job ended.

123456

id

number

The job ID.

123

jobSign

string

The unique identifier of the job.

job-1

name

string

The name of the job.

job-name

params

string

A JSON string of additional job parameters.

{}

result

string

A JSON string containing the job execution result.

{"data":{"RELEASE_INFO":"[]","ARTIFACTSV2":"[]","ARTIFACTS":"[]"},"requestId":"8bf5e28c-a58b-498e-a205-1c0ff5465c3c","successful":true}

startTime

number

The timestamp when the job started.

123456

status

string

The execution status of the job.

SUCCESS

name

string

The name of the stage.

stage-name

startTime

number

The timestamp when the stage started.

123

status

string

The execution status of the stage.

SUCCESS

status

string

The execution status of the stage.

SUCCESS

status

string

The overall status of the pipeline run.

SUCCESS

triggerMode

string

The trigger mode.

1

updateTime

string

The time when the pipeline run was last updated.

2024-01-01 00:00:00

Response example

{
    "pipelineRun": {
        "createTime": "2024-01-01 00:00:00",
        "creator": "61c92a37ae805dbacc5b9f78",
        "creatorAccountId": "creator-account-id",
        "modifier": "61c92a37ae805dbacc5b9f78",
        "modifierAccountId": "modifier-account-id",
        "pipelineId": "123",
        "pipelineRunId": "123456",
        "sources": [
            {
                "data": {
                    "branch": "master",
                    "commit": "commit",
                    "repo": "https://codeup.aliyun.com…"
                },
                "sign": "sign",
                "type": "type"
            }
        ],
        "stageTopo": [
            [
                
            ]
        ],
        "stages": [
            {
                "index": "Group0-Stage0",
                "name": "stage-name",
                "stageInfo": {
                    "endTime": 123,
                    "jobs": [
                        {
                            "actions": [
                                {
                                    "disable": true,
                                    "params": "{}",
                                    "type": "type"
                                }
                            ],
                            "endTime": 123456,
                            "id": 123,
                            "jobSign": "job-1",
                            "name": "job-name",
                            "params": "{}",
                            "result": "{\"data\":{\"RELEASE_INFO\":\"[]\",\"ARTIFACTSV2\":\"[]\",\"ARTIFACTS\":\"[]\"},\"requestId\":\"8bf5e28c-a58b-498e-a205-1c0ff5465c3c\",\"successful\":true}",
                            "startTime": 123456,
                            "status": "SUCCESS"
                        }
                    ],
                    "name": "stage-name",
                    "startTime": 123,
                    "status": "SUCCESS"
                },
                "status": "SUCCESS"
            }
        ],
        "status": "SUCCESS",
        "triggerMode": "1",
        "updateTime": "2024-01-01 00:00:00"
    }
}

Error codes

For a list of API-related error codes, see the Error Code Center.