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(BuildConfiguration buildConfiguration,
ActionParametersMap actionParametersMap,
PlanCreationService.EnablePlan ifPlanEnabled) |
String |
createPlan(BuildConfiguration buildConfiguration,
ActionParametersMap actionParametersMap,
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 BuildConfiguration buildConfiguration, @NotNull ActionParametersMap actionParametersMap, @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 BuildConfiguration buildConfiguration, @NotNull ActionParametersMap actionParametersMap, @NotNull PlanCreationService.EnablePlan ifPlanEnabled) throws PlanCreationDeniedException, PlanCreationException
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.