public interface JobCreationService extends PlanCreationService
PlanCreationService.EnablePlan
EXISTING_PROJECT_KEY, NEW_PROJECT_MARKER, PROJECT_DESCRIPTION, PROJECT_KEY, PROJECT_NAME
Modifier and Type | Method and Description |
---|---|
List<PlanKey> |
createJobAndBranches(@NotNull BuildConfiguration buildConfiguration,
@NotNull ActionParametersMap actionParametersMap,
@NotNull PlanCreationService.EnablePlan ifPlanEnabled) |
String |
createPlan(@NotNull BuildConfiguration buildConfiguration,
@NotNull ActionParametersMap actionParametersMap,
@NotNull PlanCreationService.EnablePlan enabled)
Deprecated.
since 4.0 use @{link #createJobAndBranches}
|
String |
createSingleJob(BuildConfiguration buildConfiguration,
ActionParametersMap clonedActionParametersMap,
PlanCreationService.EnablePlan planEnabled) |
Job |
getNewInstance() |
getBuildConfigurationWithDefaults, savePlan, triggerCreationCompleteEvents, validatePlan
Job getNewInstance()
getNewInstance
in interface PlanCreationService
String createSingleJob(BuildConfiguration buildConfiguration, ActionParametersMap clonedActionParametersMap, PlanCreationService.EnablePlan planEnabled) throws PlanCreationDeniedException, PlanCreationException
@Deprecated String createPlan(@NotNull @NotNull BuildConfiguration buildConfiguration, @NotNull @NotNull ActionParametersMap actionParametersMap, @NotNull @NotNull PlanCreationService.EnablePlan enabled) throws PlanCreationDeniedException, PlanCreationException
createPlan
in interface PlanCreationService
buildConfiguration
- of the plan to createactionParametersMap
- containing any other required params NOT in the buildConfigurationenabled
- whether the plan should start enabled or disabledPlanCreationDeniedException
- if plan creation fails because you already have too many plans.PlanCreationException
- if plan creation fails for any other reasonList<PlanKey> createJobAndBranches(@NotNull @NotNull BuildConfiguration buildConfiguration, @NotNull @NotNull ActionParametersMap actionParametersMap, @NotNull @NotNull PlanCreationService.EnablePlan ifPlanEnabled) throws PlanCreationDeniedException, PlanCreationException
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.