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(() => {

})