com.cloudbees.plugins.flow
Class JobInvocation

java.lang.Object
  extended by com.cloudbees.plugins.flow.JobInvocation
All Implemented Interfaces:
groovy.lang.GroovyObject
Direct Known Subclasses:
JobInvocation.Start

public class JobInvocation
extends Object
implements groovy.lang.GroovyObject


Nested Class Summary
static class JobInvocation.Start
           
 
Constructor Summary
JobInvocation(FlowRun run, hudson.model.AbstractProject project)
           
JobInvocation(FlowRun run, String name)
           
 
Method Summary
 boolean abort()
           
 void buildCompleted()
           
 void buildFinalized()
           
 void buildStarted(hudson.model.AbstractBuild build)
           
 boolean equals(Object obj)
           
 hudson.model.Run getBuild()
           
 String getBuildUrl()
           
 hudson.model.AbstractBuild getFlowRun()
           
 String getId()
           
 groovy.lang.MetaClass getMetaClass()
           
 String getName()
           
 hudson.model.AbstractProject<?,? extends hudson.model.AbstractBuild<?,?>> getProject()
           
 Object getProperty(String property)
           
 hudson.model.Result getResult()
           
 String getResultString()
           
 String getStartTime()
           
 int hashCode()
           
 Object invokeMethod(String name, Object args)
           
 boolean isCompleted()
           
 boolean isFinalized()
           
 boolean isStarted()
           
 Object propertyMissing(String name)
           
 JobInvocation run(hudson.model.Cause cause, List<hudson.model.Action> actions)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setProperty(String property, Object value)
           
 String toString()
           
 void waitForCompletion()
           
 void waitForFinalization()
           
 hudson.model.Run waitForStart()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JobInvocation

public JobInvocation(FlowRun run,
                     hudson.model.AbstractProject project)

JobInvocation

public JobInvocation(FlowRun run,
                     String name)
Method Detail

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass mc)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String property,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject

run

public JobInvocation run(hudson.model.Cause cause,
                         List<hudson.model.Action> actions)

abort

public boolean abort()

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

propertyMissing

public Object propertyMissing(String name)

getResult

public hudson.model.Result getResult()
                              throws ExecutionException,
                                     InterruptedException
Throws:
ExecutionException
InterruptedException

getResultString

public String getResultString()
                       throws ExecutionException,
                              InterruptedException
Throws:
ExecutionException
InterruptedException

getFlowRun

public hudson.model.AbstractBuild getFlowRun()

buildStarted

public void buildStarted(hudson.model.AbstractBuild build)

buildCompleted

public void buildCompleted()

buildFinalized

public void buildFinalized()

getName

public String getName()

isStarted

public boolean isStarted()

isCompleted

public boolean isCompleted()

isFinalized

public boolean isFinalized()

getBuildUrl

public String getBuildUrl()

getStartTime

public String getStartTime()

getBuild

public hudson.model.Run getBuild()
                          throws ExecutionException,
                                 InterruptedException
Throws:
ExecutionException
InterruptedException

getProject

public hudson.model.AbstractProject<?,? extends hudson.model.AbstractBuild<?,?>> getProject()

toString

public String toString()
Overrides:
toString in class Object

waitForStart

public hudson.model.Run waitForStart()
                              throws ExecutionException,
                                     InterruptedException
Throws:
ExecutionException
InterruptedException

waitForCompletion

public void waitForCompletion()
                       throws ExecutionException,
                              InterruptedException
Throws:
ExecutionException
InterruptedException

waitForFinalization

public void waitForFinalization()
                         throws ExecutionException,
                                InterruptedException
Throws:
ExecutionException
InterruptedException

getId

public String getId()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2004-2014. All Rights Reserved.