引入
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)
描述:
启动流水线
参数:
参数名 | 类型 | 描述 |
---|---|---|
config | object | 配置信息 |
config.buildId | string | 流水线构建Id |
config.data | object | 携带的数据 |
返回:
Promise
示例
ts
startPipeline({
buildId,
data: {}
}).then(() => {
})