Constructor and Description |
---|
RunExecution() |
Modifier and Type | Method and Description |
---|---|
abstract void |
cleanUp(BuildListener listener)
Performs final clean up action.
|
Map<Object,Object> |
getAttributes()
Bag of stuff to allow plugins to store state for the duration of a build
without persisting it.
|
RunT |
getBuild() |
JobT |
getProject() |
abstract void |
post(BuildListener listener)
Performs the post-build action.
|
abstract Result |
run(BuildListener listener)
Performs the main build and returns the status code.
|
@NonNull public abstract Result run(@NonNull BuildListener listener) throws Exception
Exception
- exception will be recorded and the build will be considered a failure.public abstract void post(@NonNull BuildListener listener) throws Exception
This method is called after the main portion of the build is completed.
This is a good opportunity to do notifications based on the result
of the build. When this method is called, the build is not really
finalized yet, and the build is still considered in progress --- for example,
even if the build is successful, this build still won't be picked up
by Job.getLastSuccessfulBuild()
.
Exception
public abstract void cleanUp(@NonNull BuildListener listener) throws Exception
This method is called after post(BuildListener)
,
after the build result is fully finalized. This is the point
where the build is already considered completed.
Among other things, this is often a necessary pre-condition before invoking other builds that depend on this build.
Exception
@NonNull public RunT getBuild()
@NonNull public JobT getProject()
Copyright © 2004–2022. All rights reserved.