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()
    • 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