本文整理匯總了TypeScript中core/pipeline/service/execution.service.ExecutionService類的典型用法代碼示例。如果您正苦於以下問題:TypeScript service.ExecutionService類的具體用法?TypeScript service.ExecutionService怎麽用?TypeScript service.ExecutionService使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了service.ExecutionService類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: provideJudgment
public provideJudgment(execution: IExecution, stage: IExecutionStage, judgmentStatus: string, judgmentInput?: string): IPromise<IExecution> {
const matcher = (result: IExecution) => {
const match = result.stages.find((test) => test.id === stage.id);
return match && match.status !== 'RUNNING';
};
return this.executionService.patchExecution(execution.id, stage.id, { judgmentStatus, judgmentInput })
.then(() => this.executionService.waitUntilExecutionMatches(execution.id, matcher));
}
示例2:
.then(updated => this.executionService.updateExecution(application, updated));