public class GetCommitCountFromBranchCallback extends RepositoryListenerAwareCallback<Integer>
Modifier and Type | Field and Description |
---|---|
org.eclipse.jgit.lib.ObjectId |
startObjectId
The commit Id of the starting point.
|
String |
targetBranchName
The branch name of the destination.
|
listener
Constructor and Description |
---|
GetCommitCountFromBranchCallback(hudson.model.TaskListener listener,
org.eclipse.jgit.lib.ObjectId startObjectId,
String targetBranchName)
Constructor for GetCommitCountFromBranchCallback
|
public final org.eclipse.jgit.lib.ObjectId startObjectId
public final String targetBranchName
public GetCommitCountFromBranchCallback(hudson.model.TaskListener listener, org.eclipse.jgit.lib.ObjectId startObjectId, String targetBranchName)
listener
- The TaskListenerstartObjectId
- The Id of the starting committargetBranchName
- The name of the destination branchpublic Integer invoke(org.eclipse.jgit.lib.Repository repository, hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException
invoke
in interface org.jenkinsci.plugins.gitclient.RepositoryCallback<Integer>
invoke
in class RepositoryListenerAwareCallback<Integer>
IOException
InterruptedException
Copyright © 2004–2016. All rights reserved.