Annotation Type BuildSteps
-
@Retention(RUNTIME) @Target(TYPE) public @interface BuildSteps
Applies configuration to all build steps defined in the same class.This annotation is applied at the class level, and will result in conditions (
onlyIf()
/onlyIfNot()
) being prepended to all build steps defined in that class.This is mainly useful for "enabled"-type conditions, where all steps in a class should be enabled/disabled based on a single condition, for example based on configuration properties.
- See Also:
BuildStep
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<? extends BooleanSupplier>[]
onlyIf
Only include build steps defined in this class if the given supplier class(es) returntrue
.Class<? extends BooleanSupplier>[]
onlyIfNot
Only include build steps defined in this class if the given supplier class(es) returnfalse
.
-
-
-
Element Detail
-
onlyIf
Class<? extends BooleanSupplier>[] onlyIf
Only include build steps defined in this class if the given supplier class(es) returntrue
.- Returns:
- the supplier class array
- Default:
- {}
-
-
-
onlyIfNot
Class<? extends BooleanSupplier>[] onlyIfNot
Only include build steps defined in this class if the given supplier class(es) returnfalse
.- Returns:
- the supplier class array
- Default:
- {}
-
-