Package dev.otbe.gitlab.ci.dsl.jobs
Class JobBuilder
-
- All Implemented Interfaces:
-
dev.otbe.gitlab.ci.dsl.Builder,dev.otbe.gitlab.ci.dsl.artifacts.ArtifactsAware,dev.otbe.gitlab.ci.dsl.cache.CacheAware,dev.otbe.gitlab.ci.dsl.environment.EnvironmentAware,dev.otbe.gitlab.ci.dsl.needs.NeedsAware,dev.otbe.gitlab.ci.dsl.rules.RulesAware,dev.otbe.gitlab.ci.dsl.scripts.ScriptsAware,dev.otbe.gitlab.ci.dsl.tags.TagsAware,dev.otbe.gitlab.ci.dsl.trigger.TriggerAware,dev.otbe.gitlab.ci.dsl.variables.VariablesAware
public class JobBuilder implements Builder<Job>, RulesAware, NeedsAware, ScriptsAware, CacheAware, ArtifactsAware, TagsAware, VariablesAware, EnvironmentAware, TriggerAware
-
-
Field Summary
Fields Modifier and Type Field Description private Stagestageprivate Imageimageprivate Booleaninterruptibleprivate BooleanallowFailureprivate ResourceGroupresourceGroupprivate Durationtimeoutprivate Stringcoverage
-
Constructor Summary
Constructors Constructor Description JobBuilder(String name, NeedsAwareness needsAwareness, RulesAwareness rulesAwareness, ScriptsAwareness scriptsAwareness, TagsAwareness tagsAwareness, ArtifactsAwareness artifactsAwareness, CacheAwareness cacheAwareness, VariablesAwareness variablesAwareness, EnvironmentAwareness environmentAwareness, TriggerAwareness triggerAwareness, Function1<JobBuilder, Unit> setup)
-
Method Summary
Modifier and Type Method Description final StagegetStage()final UnitsetStage(Stage stage)final ImagegetImage()final UnitsetImage(Image image)final BooleangetInterruptible()final UnitsetInterruptible(Boolean interruptible)final BooleangetAllowFailure()final UnitsetAllowFailure(Boolean allowFailure)final ResourceGroupgetResourceGroup()final UnitsetResourceGroup(ResourceGroup resourceGroup)final DurationgetTimeout()final UnitsetTimeout(Duration timeout)final StringgetCoverage()final UnitsetCoverage(String coverage)Jobbuild()-
Methods inherited from class dev.otbe.gitlab.ci.dsl.rules.RulesAware
rules, rules, rules -
Methods inherited from class dev.otbe.gitlab.ci.dsl.needs.NeedsAware
needs, needs, needs, needsAsString -
Methods inherited from class dev.otbe.gitlab.ci.dsl.scripts.ScriptsAware
script, scripts, scripts -
Methods inherited from class dev.otbe.gitlab.ci.dsl.cache.CacheAware
cache, cache, cache -
Methods inherited from class dev.otbe.gitlab.ci.dsl.artifacts.ArtifactsAware
artifacts, artifacts -
Methods inherited from class dev.otbe.gitlab.ci.dsl.tags.TagsAware
tags, tags, tags, tagsAsList -
Methods inherited from class dev.otbe.gitlab.ci.dsl.variables.VariablesAware
variables, variables -
Methods inherited from class dev.otbe.gitlab.ci.dsl.environment.EnvironmentAware
environment, environment -
Methods inherited from class dev.otbe.gitlab.ci.dsl.trigger.TriggerAware
trigger, trigger -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
JobBuilder
JobBuilder(String name, NeedsAwareness needsAwareness, RulesAwareness rulesAwareness, ScriptsAwareness scriptsAwareness, TagsAwareness tagsAwareness, ArtifactsAwareness artifactsAwareness, CacheAwareness cacheAwareness, VariablesAwareness variablesAwareness, EnvironmentAwareness environmentAwareness, TriggerAwareness triggerAwareness, Function1<JobBuilder, Unit> setup)
-
-
Method Detail
-
getStage
final Stage getStage()
-
getImage
final Image getImage()
-
getInterruptible
final Boolean getInterruptible()
-
setInterruptible
final Unit setInterruptible(Boolean interruptible)
-
getAllowFailure
final Boolean getAllowFailure()
-
setAllowFailure
final Unit setAllowFailure(Boolean allowFailure)
-
getResourceGroup
final ResourceGroup getResourceGroup()
-
setResourceGroup
final Unit setResourceGroup(ResourceGroup resourceGroup)
-
getTimeout
final Duration getTimeout()
-
setTimeout
final Unit setTimeout(Duration timeout)
-
getCoverage
final String getCoverage()
-
setCoverage
final Unit setCoverage(String coverage)
-
build
Job build()
-
-
-
-