Class RevCommitRepositoryCallback

  • All Implemented Interfaces:
    Serializable, org.jenkinsci.plugins.gitclient.RepositoryCallback<org.eclipse.jgit.revwalk.RevCommit>

    public final class RevCommitRepositoryCallback
    extends Object
    implements org.jenkinsci.plugins.gitclient.RepositoryCallback<org.eclipse.jgit.revwalk.RevCommit>
    Retrieves RevCommit from given Build revision.
    See Also:
    Serialized Form
    • Constructor Detail

      • RevCommitRepositoryCallback

        public RevCommitRepositoryCallback​(Build revToBuild)
    • Method Detail

      • invoke

        public org.eclipse.jgit.revwalk.RevCommit invoke​(org.eclipse.jgit.lib.Repository repository,
                                                         hudson.remoting.VirtualChannel virtualChannel)
                                                  throws IOException,
                                                         InterruptedException
        Specified by:
        invoke in interface org.jenkinsci.plugins.gitclient.RepositoryCallback<org.eclipse.jgit.revwalk.RevCommit>
        Throws:
        IOException
        InterruptedException