---
title: "构建plugin"
method: POST
path: "/v2/tenants/{tenant_name}/plugin/{plugin_id}/build"
tags: ["v2"]
---

# 构建plugin

`POST /v2/tenants/{tenant_name}/plugin/{plugin_id}/build`

build plugin

## Path parameters

- `tenant_name` string, required
- `plugin_id` string, required

## Request body

- object
  - `deploy_version` string, required — 部署的版本号 in: body
  - `event_id` string, required — the event id in: body
  - `git_url` string — git地址 in: body
  - `image_url` string — 镜像地址 in: body
  - `info` string, required — 版本信息, 协助选择插件版本 in:body
  - `kind` string, required — 插件构建类型, image/dockerfile in: body
  - `operator` string — 操作人 in: body
  - `repo_url` string — git地址 带版本 in: body
  - `tenant_id` string — 租户id in: body

## Response `default`

统一返回格式

- CommandResponse — unresolved $ref

## Changes

- **2017-11-07** `5e3ca7f5dfc5` — 1 info
  - endpoint added
- **2017-11-07** `7b547fba71aa` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/goodrain/apis/untitled-api/changes/v2/tenants/:tenant_name/plugin/:plugin_id/build/post.md)

---

[API](https://skmtc.dev/goodrain/apis/untitled-api.md) · [All operations](https://skmtc.dev/goodrain/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/goodrain/untitled-api/revisions/8c773e222448/schema)
