Package jenkins.plugins.git
Class GitToolChooser.RepositorySizeAPI
- java.lang.Object
-
- jenkins.plugins.git.GitToolChooser.RepositorySizeAPI
-
- All Implemented Interfaces:
ExtensionPoint
- Enclosing class:
- GitToolChooser
public abstract static class GitToolChooser.RepositorySizeAPI extends Object implements ExtensionPoint
Other plugins can estimate the size of repository using this extension point The size is assumed to be in KiBs
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description RepositorySizeAPI()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ExtensionList<GitToolChooser.RepositorySizeAPI>
all()
abstract Long
getSizeOfRepository(String remote, Item context, String credentialsId)
abstract boolean
isApplicableTo(String remote, Item context, String credentialsId)
-
-
-
Method Detail
-
isApplicableTo
public abstract boolean isApplicableTo(String remote, Item context, String credentialsId)
-
getSizeOfRepository
public abstract Long getSizeOfRepository(String remote, Item context, String credentialsId) throws Exception
- Throws:
Exception
-
all
public static ExtensionList<GitToolChooser.RepositorySizeAPI> all()
-
-