|Constructor and Description|
|Modifier and Type||Method and Description|
Runs after the
since 2007-10-28. Use
public boolean tearDown(AbstractBuild build, BuildListener listener) throws IOException, InterruptedException
Buildercompletes, and performs a tear down.
This method is invoked even when the build failed, so that the
clean up operation can be performed regardless of the build result
(for example, you'll want to stop application server even if a build
Run.getResult() in this case will return Result.FAILURE
(since 1.339), and a null result indicates SUCCESS-so-far (post-build
actions may still affect the final result).
build- The same
Buildobject given to the set up method.
listener- The same
BuildListenerobject given to the set up method.
IOException- terminates the build abnormally. Hudson will handle the exception and reports a nice error message.
Copyright © 2004–2021. All rights reserved.