public interface ReleaserTask extends org.springframework.core.Ordered, Function<Arguments,ExecutionResult>
Modifier and Type | Method and Description |
---|---|
default ExecutionResult |
apply(Arguments args)
Executes the task but catches exceptions and converts them into result.
|
String |
description() |
String |
header() |
String |
name() |
ExecutionResult |
runTask(Arguments args)
Main task execution logic.
|
default void |
setup(Options options,
ReleaserProperties properties)
If necessary mutates options and properties for the release task.
|
String |
shortName() |
String name()
String shortName()
String header()
String description()
default void setup(Options options, ReleaserProperties properties)
options
- - options to mutateproperties
- - properties to mutatedefault ExecutionResult apply(Arguments args)
apply
in interface Function<Arguments,ExecutionResult>
args
- - arguments to run the taskExecutionResult runTask(Arguments args) throws BuildUnstableException, RuntimeException
args
- - arguments for the jobBuildUnstableException
- - when the task failed but the release flow
shouldn't be stopped (which means that the build is unstable)RuntimeException
- - when the task failed for any other reasonCopyright © 2020 Pivotal Software, Inc.. All rights reserved.