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 integrationBranch name of the destination.
|
Constructor and Description |
---|
GetCommitCountFromBranchCallback(org.eclipse.jgit.lib.ObjectId startObjectId,
String targetBranchName)
Constructor for GetCommitCountFromBranchCallback
|
Modifier and Type | Method and Description |
---|---|
Integer |
invoke(org.eclipse.jgit.lib.Repository repository,
hudson.remoting.VirtualChannel channel) |
public final org.eclipse.jgit.lib.ObjectId startObjectId
public final String targetBranchName
public GetCommitCountFromBranchCallback(org.eclipse.jgit.lib.ObjectId startObjectId, String targetBranchName)
startObjectId
- The Id of the starting committargetBranchName
- The name of the destination integrationBranchpublic 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 © 2016–2022. All rights reserved.