1 | import { HandlerContext } from "@atomist/automation-client/lib/HandlerContext";
|
2 | import { HandlerResult } from "@atomist/automation-client/lib/HandlerResult";
|
3 | import { ExecuteGoalResult } from "../../api/goal/ExecuteGoalResult";
|
4 | import { Goal } from "../../api/goal/Goal";
|
5 | import { ExecuteGoal, GoalInvocation, GoalProjectListenerRegistration } from "../../api/goal/GoalInvocation";
|
6 | import { SdmGoalEvent } from "../../api/goal/SdmGoalEvent";
|
7 | import { GoalImplementation } from "../../api/goal/support/GoalImplementationMapper";
|
8 | import { GoalExecutionListener } from "../../api/listener/GoalStatusListener";
|
9 | import { SoftwareDeliveryMachineConfiguration } from "../../api/machine/SoftwareDeliveryMachineOptions";
|
10 | import { ProjectLoader } from "../../spi/project/ProjectLoader";
|
11 |
|
12 |
|
13 |
|
14 | export declare function executeGoal(rules: {
|
15 | projectLoader: ProjectLoader;
|
16 | goalExecutionListeners: GoalExecutionListener[];
|
17 | }, implementation: GoalImplementation, gi: GoalInvocation): Promise<ExecuteGoalResult>;
|
18 | export declare function executeHook(rules: {
|
19 | projectLoader: ProjectLoader;
|
20 | }, goalInvocation: GoalInvocation, sdmGoal: SdmGoalEvent, stage: "post" | "pre"): Promise<HandlerResult>;
|
21 | export declare function markStatus(parameters: {
|
22 | context: HandlerContext;
|
23 | goalEvent: SdmGoalEvent;
|
24 | goal: Goal;
|
25 | result: ExecuteGoalResult;
|
26 | error?: Error;
|
27 | progressLogUrl: string;
|
28 | }): Promise<void>;
|
29 | export declare function prepareGoalExecutor(gi: GoalImplementation, sdmGoal: SdmGoalEvent, configuration: SoftwareDeliveryMachineConfiguration): ExecuteGoal;
|
30 | export declare function prepareGoalInvocation(gi: GoalInvocation, listeners: GoalProjectListenerRegistration | GoalProjectListenerRegistration[]): GoalInvocation;
|
31 |
|
\ | No newline at end of file |