com.cloudbees.plugins.flow
Class JobInvocation
java.lang.Object
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
JobInvocation
public JobInvocation(FlowRun run,
hudson.model.AbstractProject project)
JobInvocation
public JobInvocation(FlowRun run,
String name)
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.