Interface ServerArtifactHelper

  • All Known Implementing Classes:
    ServerArtifactHelperImpl

    public interface ServerArtifactHelper
    Helper interface for accessing externally stored artifacts on server. Implementation will be autowired by Spring context.
    Since:
    2017.1
    Author:
    vbedrosova
    • Method Detail

      • getArtifactList

        @Nullable
        ArtifactListData getArtifactList​(@NotNull
                                         SBuild build)
                                  throws IOException
        Get external artifacts information from the build.
        Parameters:
        build - to get information from
        Returns:
        available external artifacts info. null if no information is available
        Throws:
        IOException - in case of errors while reading the artifacts information file
        Since:
        2017.1
      • getArtifactList

        @Nullable
        ArtifactListData getArtifactList​(@NotNull
                                         File buildDirectory)
                                  throws IOException
        Get external artifacts information from the build found in a specific directory.
        Parameters:
        buildDirectory - directory where build is located
        Returns:
        available external artifacts info. null if no information is available
        Throws:
        IOException - in case of errors while reading the artifacts information file
        Since:
        2017.1
      • removeFromArtifactList

        void removeFromArtifactList​(@NotNull
                                    SBuild build,
                                    @NotNull
                                    List<String> artifacts)
                             throws IOException
        Removes the provided artifacts from the artifact list of the provided build
        Throws:
        IOException - in case of errors while removing