Class JGitProgressMonitor

  • All Implemented Interfaces:

    public class JGitProgressMonitor
    extends Object
    implements org.eclipse.jgit.lib.ProgressMonitor
    Jenkins implementation of the JGit progress monitoring interface. Reports progress of JGit operations like fetch and clone to the Jenkins TaskListener passed to the constructor.
    • Constructor Detail

      • JGitProgressMonitor

        public JGitProgressMonitor​(TaskListener listener)
        Constructor for JGitProgressMonitor.
        listener - task listener that will receive progress messages during JGit operations
    • Method Detail

      • start

        public void start​(int totalTasks)
        Specified by:
        start in interface org.eclipse.jgit.lib.ProgressMonitor
      • beginTask

        public void beginTask​(String title,
                              int totalWork)
        Specified by:
        beginTask in interface org.eclipse.jgit.lib.ProgressMonitor
      • update

        public void update​(int completed)
        Specified by:
        update in interface org.eclipse.jgit.lib.ProgressMonitor
      • endTask

        public void endTask()
        Specified by:
        endTask in interface org.eclipse.jgit.lib.ProgressMonitor
      • showDuration

        public void showDuration​(boolean enabled)
        Specified by:
        showDuration in interface org.eclipse.jgit.lib.ProgressMonitor
      • isCancelled

        public boolean isCancelled()
        Specified by:
        isCancelled in interface org.eclipse.jgit.lib.ProgressMonitor