Class FileCleanAdapter

    • Constructor Detail

      • FileCleanAdapter

        public FileCleanAdapter()
    • Method Detail

      • buildFilesCleanedOnBuiltInStorage

        public void buildFilesCleanedOnBuiltInStorage​(@NotNull
                                                      File dir,
                                                      @NotNull
                                                      SBuild build,
                                                      long cleanedArtifactsSize,
                                                      long cleanedInternalArtifactsSize,
                                                      long cleanedLogsSize,
                                                      boolean noArtifactsLeft)
        Description copied from interface: FileCleanListener
        Called when artifacts are cleaned from a build (partial cleanup). This method is originated only for reports of built-in storages being cleaned. The particular storage id will be obtained automatically from the build. As a more general method, which expects specifing storage id, see FileCleanListener.buildFilesCleaned(File, SBuild, long, long, long, boolean, String).
        Specified by:
        buildFilesCleanedOnBuiltInStorage in interface FileCleanListener
        Parameters:
        dir - Build artifacts directory.
        build - Build associated with this directory (still in history)
        cleanedArtifactsSize - Size of build artifacts cleaned
        cleanedInternalArtifactsSize - Size of internal artifacts cleaned. Doesn't contain cleaned log size.
        cleanedLogsSize - Size of build logs cleaned.
        noArtifactsLeft - Should be true if no artifacts left (internal artifacts don't matter)
      • buildFilesCleaned

        public void buildFilesCleaned​(@NotNull
                                      File dir,
                                      @NotNull
                                      SBuild build,
                                      long cleanedArtifactsSize,
                                      long cleanedInternalArtifactsSize,
                                      long cleanedLogsSize,
                                      boolean noArtifactsLeft,
                                      @NotNull
                                      String storageId)
        Description copied from interface: FileCleanListener
        Called when artifacts are cleaned from a build (partial cleanup).
        Specified by:
        buildFilesCleaned in interface FileCleanListener
        Parameters:
        dir - Build artifacts directory.
        build - Build associated with this directory (still in history)
        cleanedArtifactsSize - Size of build artifacts cleaned
        cleanedInternalArtifactsSize - Size of internal artifacts cleaned. Doesn't contain cleaned log size.
        cleanedLogsSize - Size of build logs cleaned.
        noArtifactsLeft - Should be true if no artifacts left (internal artifacts don't matter)
        storageId - Id of the storage, where artifacts where removed