Skip to content

引入

ts
import { startPipeline } from 't-comm';

// 不支持 tree-shaking 的项目
import { startPipeline} from 't-comm/lib/pipeline/index';

// 只支持 ESM 的项目
import { startPipeline} from 't-comm/es/pipeline/index';

startPipeline(config)

描述

启动流水线

参数

参数名类型描述
configobject

配置信息

config.buildIdstring

流水线构建Id

config.dataobject

携带的数据

返回:

Promise

示例

ts
startPipeline({
  buildId,
  data: {}
}).then(() => {

})