Interface ArtifactsWatcher

  • All Known Subinterfaces:
    ArtifactsWatcherEx
    All Known Implementing Classes:
    ArtifactProcessor

    public interface ArtifactsWatcher
    Can be used to notify agent artifacts publisher about new artifacts to be published during the build
    • Method Detail

      • addNewArtifactsPath

        void addNewArtifactsPath​(@NotNull
                                 String artifactsPath)
        Notifies agent about new path where build artifacts reside
        Parameters:
        artifactsPath - artifacts path in TeamCity format
      • waitForPublishingFinish

        void waitForPublishingFinish()
        Wait for publishing is finish. Since addNewArtifactsPath(String) only schedules artifacts publishing if client code should wait for publication finishing it should invoke this method. The method will block until publication is finished, failed or cancelled (for example in case of build interruption)