Class GitMetadataBuilderCallback
- java.lang.Object
-
- org.datadog.jenkins.plugins.datadog.util.git.GitMetadataBuilderCallback
-
- All Implemented Interfaces:
Serializable
,org.jenkinsci.plugins.gitclient.RepositoryCallback<GitMetadataBuilderCallback.Result>
public final class GitMetadataBuilderCallback extends Object implements org.jenkinsci.plugins.gitclient.RepositoryCallback<GitMetadataBuilderCallback.Result>
Populates GitMetadata.Builder instance for a certain repository using the JGit.This must be called using gitClient.withRepository(...) method. See GitUtils.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GitMetadataBuilderCallback.Result
-
Constructor Summary
Constructors Constructor Description GitMetadataBuilderCallback(String branchHint, boolean examineRepoRefs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GitMetadataBuilderCallback.Result
invoke(org.eclipse.jgit.lib.Repository repository, hudson.remoting.VirtualChannel channel)
!IMPORTANT! Keep in mind that this callback may be executed on a worker node, which means both the callback and the result are serialized and sent between different hosts.
-
-
-
Constructor Detail
-
GitMetadataBuilderCallback
public GitMetadataBuilderCallback(@Nullable String branchHint, boolean examineRepoRefs)
-
-
Method Detail
-
invoke
public GitMetadataBuilderCallback.Result invoke(org.eclipse.jgit.lib.Repository repository, hudson.remoting.VirtualChannel channel)
!IMPORTANT! Keep in mind that this callback may be executed on a worker node, which means both the callback and the result are serialized and sent between different hosts. Avoid using anything that is not serializable- Specified by:
invoke
in interfaceorg.jenkinsci.plugins.gitclient.RepositoryCallback<GitMetadataBuilderCallback.Result>
-
-