CLI命令参考
模板管理
流水线管理
| API名称 | 命令 | 描述 | 操作 |
|---|---|---|---|
| 基于模板快速创建流水线及流水线内任务 | hcloud CodeArtsPipeline CreatePipelineByTemplate | 基于模板快速创建流水线及流水线内任务 | |
| 检查流水线创建状态 | hcloud CodeArtsPipeline ShowInstanceStatus | 检查流水线创建状态 | |
| 启动流水线 | hcloud CodeArtsPipeline StartNewPipeline | 启动流水线 | |
| 停止流水线 | hcloud CodeArtsPipeline StopPipelineNew | 停止流水线 | |
| 批量获取流水线状态 | hcloud CodeArtsPipeline BatchShowPipelinesStatus | 批量获取流水线状态和阶段信息 | |
| 删除流水线 | hcloud CodeArtsPipeline RemovePipeline | 根据id删除流水线 | |
| 获取流水线列表接口 | hcloud CodeArtsPipeline ListPipelineSimpleInfo | 获取流水线列表接口 | |
| 获取流水线状态 | hcloud CodeArtsPipeline ShowPipleineStatus | 获取流水线状态,阶段及任务信息 | |
| 获取项目下流水线执行状况 | hcloud CodeArtsPipeline ListPipleineBuildResult | 获取项目下流水线执行状况 | |
| 查询流水线详情 | hcloud CodeArtsPipeline ShowPipelineDetail | 查询流水线详情 | |
| 修改流水线信息 | hcloud CodeArtsPipeline UpdatePipelineInfo | 修改流水线信息 |
流水线管理--新
| API名称 | 命令 | 描述 | 操作 |
|---|---|---|---|
| 启动流水线 | hcloud CodeArtsPipeline RunPipeline | 启动流水线 | |
| 创建流水线 | hcloud CodeArtsPipeline CreatePipelineNew | 创建流水线 | |
| 重试运行流水线 | hcloud CodeArtsPipeline RetryPipelineRun | 重试运行流水线 | |
| 通过人工审核 | hcloud CodeArtsPipeline AcceptManualReview | 通过人工审核 | |
| 驳回人工审核 | hcloud CodeArtsPipeline RejectManualReview | 驳回人工审核 | |
| 手动卡点通过 | hcloud CodeArtsPipeline AcceptCheckpoint | 手动卡点通过 | |
| 批量获取流水线状态 | hcloud CodeArtsPipeline BatchShowPipelinesLatestStatus | 批量获取流水线状态 | |
| 获取流水线状态/获取流水线执行详情 | hcloud CodeArtsPipeline ShowPipelineRunDetail | 获取流水线状态/获取流水线执行详情 | |
| 获取流水线列表/获取项目下流水线执行状况 | hcloud CodeArtsPipeline ListPipelines | 获取流水线列表/获取项目下流水线执行状况 | |
| 删除流水线 | hcloud CodeArtsPipeline DeletePipeline | 删除流水线 | |
| 停止流水线 | hcloud CodeArtsPipeline StopPipelineRun | 停止流水线 | |
| 获取流水线执行记录 | hcloud CodeArtsPipeline ListPipelineRuns | 获取流水线执行记录 | |
| 基于模板创建流水线 | hcloud CodeArtsPipeline CreatePipelineByTemplateId | 基于模板创建流水线 | |
| 查询流水线日志 | hcloud CodeArtsPipeline ShowPipelineLog | 查询流水线日志 | |
| 获取流水线步骤执行输出 | hcloud CodeArtsPipeline ShowStepOutputs | 获取流水线步骤执行输出 | |
| 查询流水线上的构建产物 | hcloud CodeArtsPipeline ShowPipelineArtifacts | 查询流水线上的构建产物 |
流水线模板管理--新
| API名称 | 命令 | 描述 | 操作 |
|---|---|---|---|
| 查询模板列表 | hcloud CodeArtsPipeline ListPipelineTemplates | 查询流水线模板列表 | |
| 创建流水线模板 | hcloud CodeArtsPipeline CreatePipelineTemplate | 创建流水线模板 | |
| 查询模板详情 | hcloud CodeArtsPipeline ShowPipelineTemplateDetail | 查询模板详情 | |
| 更新流水线模板 | hcloud CodeArtsPipeline UpdatePipelineTemplate | 更新流水线模板 | |
| 删除流水线模板 | hcloud CodeArtsPipeline DeletePipelineTemplate | 删除流水线模板 |
流水线分组管理
| API名称 | 命令 | 描述 | 操作 |
|---|---|---|---|
| 新建流水线分组 | hcloud CodeArtsPipeline CreatePipelineGroup | 新建流水线分组 | |
| 更新流水线分组 | hcloud CodeArtsPipeline UpdatePipelineGroup | 更新流水线分组 | |
| 删除流水线分组 | hcloud CodeArtsPipeline DeletePipelineGroup | 删除流水线分组 | |
| 查询流水线分组树 | hcloud CodeArtsPipeline ShowPipelineGroupTree | 查询流水线分组树 | |
| 批量把流水线移动到分组下 | hcloud CodeArtsPipeline BatchMovePipelineToGroup | 批量把流水线移动到分组下 |
规则管理
项目级策略管理
租户级策略管理
| API名称 | 命令 | 描述 | 操作 |
|---|---|---|---|
| 创建策略 | hcloud CodeArtsPipeline CreateStrategy | 创建策略 | |
| 修改策略 | hcloud CodeArtsPipeline UpdateStrategy | 修改策略 | |
| 获取策略详情 | hcloud CodeArtsPipeline ShowStrategy | 获取策略详情 | |
| 获取策略列表 | hcloud CodeArtsPipeline ListStrategy | 获取策略列表 | |
| 删除策略 | hcloud CodeArtsPipeline DeleteStrategy | 删除策略 | |
| 开关策略 | hcloud CodeArtsPipeline SwitchStrategy | 修改策略状态 |
扩展插件管理
| API名称 | 命令 | 描述 | 操作 |
|---|---|---|---|
| 发布插件 | hcloud CodeArtsPipeline PublishPlugin | 发布插件 | |
| 更新插件基本信息 | hcloud CodeArtsPipeline UpdatePluginBaseInfo | 更新插件基本信息 | |
| 创建插件草稿版本 | hcloud CodeArtsPipeline CreatePluginDraft | 创建插件草稿版本 | |
| 发布插件草稿 | hcloud CodeArtsPipeline PublishPluginDraft | 发布插件草稿 | |
| 创建插件版本 | hcloud CodeArtsPipeline CreatePluginVersion | 创建插件版本 | |
| 更新插件草稿 | hcloud CodeArtsPipeline UpdatePluginDraft | 更新插件草稿 | |
| 创建发布商 | hcloud CodeArtsPipeline CreatePublisher | 创建发布商 | |
| 插件绑定发布商 | hcloud CodeArtsPipeline PublishPluginBind | 插件绑定发布商 | |
| 更新插件图标 | hcloud CodeArtsPipeline UploadPluginIcon | 更新插件图标 | |
| 更新发布商图标 | hcloud CodeArtsPipeline UploadPublisherIcon | 更新发布商图标 | |
| 删除插件草稿 | hcloud CodeArtsPipeline DeletePluginDraft | 删除插件草稿 | |
| 查询发布商列表 | hcloud CodeArtsPipeline ListPublisher | 查询发布商列表 | |
| 查询可用发布商 | hcloud CodeArtsPipeline ListAvailablePublisher | 查询可用发布商 | |
| 查询可选插件列表 | hcloud CodeArtsPipeline ListStagePlugins | 查询可选插件列表 | |
| 查询基础插件列表 | hcloud CodeArtsPipeline ListBasePlugins | 查询基础插件列表 | |
| 分页查询可选插件列表 | hcloud CodeArtsPipeline ListBasePluginsNewPost | 分页查询可选插件列表 | |
| 查询插件列表 | hcloud CodeArtsPipeline ListPlugins | 查询插件列表 | |
| 查询插件指标配置 | hcloud CodeArtsPipeline ShowPluginMetrics | 查询插件指标配置 | |
| 查询插件输入配置 | hcloud CodeArtsPipeline ShowPluginInputs | 查询插件输入配置 | |
| 查询插件输出配置 | hcloud CodeArtsPipeline ShowPluginOutputs | 查询插件输出配置 | |
| 查询插件所有版本信息 | hcloud CodeArtsPipeline ListPLuginVersion | 查询插件所有版本信息 | |
| 查询插件版本详情 | hcloud CodeArtsPipeline ShowPluginVersion | 查询插件版本详情 | |
| 查询插件版本号 | hcloud CodeArtsPipeline ListPluginVersionNumber | 查询插件版本号 | |
| 删除发布商 | hcloud CodeArtsPipeline DeletePublisher | 删除发布商 | |
| 查询发布商详情 | hcloud CodeArtsPipeline ShowPublisher | 查询发布商详情 | |
| 创建基础插件 | hcloud CodeArtsPipeline CreateBasicPlugin | 创建基础插件 | |
| 更新基础插件 | hcloud CodeArtsPipeline UpdateBasicPlugin | 更新基础插件 | |
| 删除基础插件 | hcloud CodeArtsPipeline DeleteBasicPlugin | 删除基础插件 | |
| 上传基础插件 | hcloud CodeArtsPipeline UploadBasicPlugin | 上传基础插件 | |
| 查询基础插件详情 | hcloud CodeArtsPipeline ShowBasicPlugin | 查询基础插件详情 |
流水线告警策略管理
流水线标签管理
流水线参数组管理
扩展点管理
Endpoint
| API名称 | 命令 | 描述 | 操作 |
|---|---|---|---|
| 代理调用外部服务接口 | hcloud CodeArtsPipeline InvokeEndpointProxy | 代理调用外部服务接口。 |
GitCode专用接口
| API名称 | 命令 | 描述 | 操作 |
|---|---|---|---|
| 查询gitcode流水线运行详情 | hcloud CodeArtsPipeline ShowActionsRunsDetail | 查询gitcode流水线运行详情 | |
| 删除gitcode流水线运行详情 | hcloud CodeArtsPipeline DeleteActionsRunPipeline | 删除gitcode流水线运行详情 | |
| 运行gitcode流水线 | hcloud CodeArtsPipeline RunActionsPipeline | 运行gitcode流水线 | |
| 重试运行gitcode流水线 | hcloud CodeArtsPipeline RetryRunActionsPipeline | 重试运行gitcode流水线 | |
| 查询gitcode流水线运行记录 | hcloud CodeArtsPipeline ListActionsPipelineRuns | 查询gitcode流水线运行记录 | |
| 查询gitcode流水线action列表 | hcloud CodeArtsPipeline ListActionsPipelineRunsByRunIds | 查询gitcode流水线action列表 |