Interface BuildScanPublishing
-
public interface BuildScanPublishing
Allows configuring whether a build scan should be published at the end of the build- Since:
- 1.21
- See Also:
BuildScanApi.getPublishing()
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
BuildScanPublishing.PublishingContext
The context for evaluating conditions that determine whether a build scan should be published at the end of the build.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BuildScanPublishing
onlyIf(java.util.function.Predicate<BuildScanPublishing.PublishingContext> onlyIf)
Specify a condition for when a build scan should be published at the end of the build.
-
-
-
Method Detail
-
onlyIf
BuildScanPublishing onlyIf(java.util.function.Predicate<BuildScanPublishing.PublishingContext> onlyIf)
Specify a condition for when a build scan should be published at the end of the build.You may add multiple such predicates. A build scan will be published if any of the predicates return true.
- Parameters:
onlyIf
- the condition- Returns:
- this object
-
-