Groovy Documentation

javaposse.jobdsl.dsl
[Groovy] Class Job

java.lang.Object
  javaposse.jobdsl.dsl.Job

class Job

DSL Element representing a Jenkins Job

Authors:
jryan
aharmel-law


Property Summary
java.lang.Object emptyMavenTemplate

java.lang.Object emptyMultijobTemplate

java.lang.Object emptyTemplate

AuthorizationContextHelper helperAuthorization

BuildParametersContextHelper helperBuildParameters

MavenHelper helperMaven

MultiScmContextHelper helperMultiscm

PublisherContextHelper helperPublisher

ScmContextHelper helperScm

StepContextHelper helperStep

TopLevelHelper helperTopLevel

TriggerContextHelper helperTrigger

JobManagement jobManagement

java.lang.String name

java.lang.String templateName

JobType type

java.util.List withXmlActions

 
Constructor Summary
Job(JobManagement jobManagement, java.util.Map arguments = [:])

 
Method Summary
java.lang.Object configure(groovy.lang.Closure withXmlClosure)

Provide raw config.xml for direct manipulation.

void executeWithXmlActions(groovy.util.Node root)

groovy.util.Node getNode()

java.lang.String getXml()

Postpone all xml processing until someone actually asks for the xml.

java.lang.Object name(java.lang.String name)

java.lang.Object name(groovy.lang.Closure nameClosure)

java.lang.Object using(java.lang.String templateName)

Creates a new job configuration, based on the job template referenced by the parameter and stores this.

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

emptyMavenTemplate

java.lang.Object emptyMavenTemplate


emptyMultijobTemplate

java.lang.Object emptyMultijobTemplate


emptyTemplate

java.lang.Object emptyTemplate


helperAuthorization

@Delegate
AuthorizationContextHelper helperAuthorization


helperBuildParameters

@Delegate
BuildParametersContextHelper helperBuildParameters


helperMaven

@Delegate
MavenHelper helperMaven


helperMultiscm

@Delegate
MultiScmContextHelper helperMultiscm


helperPublisher

@Delegate
PublisherContextHelper helperPublisher


helperScm

@Delegate
ScmContextHelper helperScm


helperStep

@Delegate
StepContextHelper helperStep


helperTopLevel

@Delegate
TopLevelHelper helperTopLevel


helperTrigger

@Delegate
TriggerContextHelper helperTrigger


jobManagement

JobManagement jobManagement


name

java.lang.String name


templateName

java.lang.String templateName


type

JobType type


withXmlActions

java.util.List withXmlActions


 
Constructor Detail

Job

Job(JobManagement jobManagement, java.util.Map arguments = [:])


 
Method Detail

configure

java.lang.Object configure(groovy.lang.Closure withXmlClosure)
Provide raw config.xml for direct manipulation. Provided as a StreamingMarkupBuilder Examples:
 configure {

 }
 
Parameters:
withXmlClosure
Returns:


executeWithXmlActions

void executeWithXmlActions(groovy.util.Node root)


getNode

groovy.util.Node getNode()


getXml

java.lang.String getXml()
Postpone all xml processing until someone actually asks for the xml. That lets us execute everything in order, even if the user didn't specify them in order.
Returns:


name

java.lang.Object name(java.lang.String name)


name

java.lang.Object name(groovy.lang.Closure nameClosure)


using

java.lang.Object using(java.lang.String templateName)
Creates a new job configuration, based on the job template referenced by the parameter and stores this.
throws:
JobTemplateMissingException
Parameters:
templateName - the name of the template upon which to base the new job
Returns:
a new graph of groovy.util.Node objects, representing the job configuration structure


 

Groovy Documentation