文档

GetPipelineRun Action说明

更新时间:

Action

对应API

功能

示例

说明

PassPipelineValidate

通过人工卡点

{
    "disable": false,
    "type": "PassPipelineValidate",
    "params":
    {
        "validators":
        [
            "12419650xxxxxx84126"
        ]
    }
}

disable: 是否有权限调用

validators: 有权限通过人工卡点的用户的aliyunPk

RefusePipelineValidate

RefusePipelineValidator

拒绝人工卡点

{
    "disable": false,
    "type": "RefusePipelineValidator",
    "params":
    {
        "validators":
        [
            "12419650xxxxxx84126"
        ]
    }
}

disable: 是否有权限调用

validators: 有权限通过人工卡点的用户的aliyunPk

RetryPipelineJobRun

RetryPipelineJobRun

重试任务运行

{
    "disable": false,
    "type": "RetryPipelineJobRun"
}

disable: 是否有权限调用

StopPipelineJobRun

StopPipelineJobRun

取消任务运行

{
    "disable": false,
    "type": "StopPipelineJobRun"
}

disable: 是否有权限调用

SkipPipelineJobRun

SkipPipelineJobRun

跳过失败任务

{
    "disable": false,
    "type": "SkipPipelineJobRun"
}

disable: 是否有权限调用

LogPipelineJobRun

LogPipelineJobRun

查看任务执行日志

{
    "disable": false,
    "type": "LogPipelineJobRun"
}

disable: 是否有权限调用

GetVMDeployOrder

GetVMDeployOrder

获取ecs部署单详情

{
    "disable": false,
    "type": "GetVMDeployOrder",
    "params":
    {
        "deployOrderId": 1111111
    }
}

disable: 是否有权限调用

deployOrderId 部署单id

GetPipelineEmasArtifactUrl

GetPipelineEmasArtifactUrl

获取EMAS构建产物临时下载地址

{
    "disable": false,
    "type": "GetPipelineEmasArtifactUrl",
    "params":
    {
        "serviceConnectionId": 11112221,
        "files":
        [
            {
                "fileName": "app-release-unsigned.apk",
                "emasJobInstanceId": "pxxx232",
                "md5": "ssaxxxasxsxsxs"
            }
        ]
    }
}

serviceConnectionId: 服务连接id

files: 构建产物,支持多个构建产物

emasJobInstanceId: emas 任务id

md5: 构建产物md5

disable: 是否有权限调用

GetPipelineArtifactUrl

GetPipelineArtifactUrl

获取流水线构建产物临时下载地址

{
    "disable": false,
    "type": "GetPipelineArtifactUrl",
    "params":
    {
        "files":
        [
            {
                "fileName": "Artifacts_1520621.tgz",
                "filePath": "aone2/212xx33/2332xxsassa/Artifacts_1520621.tgz"
            }
        ]
    }
}

disable: 是否有权限调用

files: 构建产物,支持多个构建产物

fileName: 构建产物名称

filePath: 构建产物路径

GetPipelineScanReportUrl

GetPipelineScanReportUrl

获取扫描报告临时下载地址

{"disable":false,"type":"GetPipelineScanReportUrl","params":{"reportPath":"assets/1xxx/1xxx/05e0edb9xxxxxxxx/index.html","reportInfo":{"Major":{"name":"issue","style":"text-danger","title":"Major","value":"6","key":"Major",}"Total":{"name":"issue","style":"text-danger","title":"Total","value":"6","key":"Total"}"Critical":{"name":"issue","style":"text-danger","title":"Critical","value":"0","key":"Critical"}"Blocker":{"name":"issue","style":"text-danger","title":"Blocker","value":"0","key":"Blocker"}"_REPORT":{"title":"report","value":"link","key":"_REPORT","url":"https://flow.aliyun.com/assets/2xxxxx/1xxxx/21212xxxxxxxxxxx/index.html"}"File":{"name":"issue","style":"text-danger","title":"File","value":"4","key":"File"}}}}

disable: 有没有权限调用

reportPath: 报告文件路径

reportInfo: 报告信息