Class FallbackToOtherRepositoryGitSCMExtension
java.lang.Object
hudson.model.AbstractDescribableImpl<hudson.plugins.git.extensions.GitSCMExtension>
hudson.plugins.git.extensions.GitSCMExtension
com.cloudbees.jenkins.plugins.bitbucket.FallbackToOtherRepositoryGitSCMExtension
- All Implemented Interfaces:
Describable<hudson.plugins.git.extensions.GitSCMExtension>
public class FallbackToOtherRepositoryGitSCMExtension
extends hudson.plugins.git.extensions.GitSCMExtension
If specified commit hashes are not found in repository then fetch
specified branches from remote.
-
Constructor Summary
ConstructorDescriptionFallbackToOtherRepositoryGitSCMExtension
(String cloneLink, String remoteName, List<BranchWithHash> branchWithHashes) -
Method Summary
Modifier and TypeMethodDescriptionhudson.plugins.git.Revision
decorateRevisionToBuild
(hudson.plugins.git.GitSCM scm, Run<?, ?> build, org.jenkinsci.plugins.gitclient.GitClient git, TaskListener listener, hudson.plugins.git.Revision marked, hudson.plugins.git.Revision rev) Methods inherited from class hudson.plugins.git.extensions.GitSCMExtension
beforeCheckout, beforeCheckout, decorate, decorateCheckoutCommand, decorateCheckoutCommand, decorateCloneCommand, decorateCloneCommand, decorateFetchCommand, decorateFetchCommand, decorateMergeCommand, decorateMergeCommand, decorateRevisionToBuild, determineSupportForJGit, enableMultipleRevisionDetection, getDescriptor, getRequiredClient, getWorkingDirectory, getWorkingDirectory, isRevExcluded, onCheckoutCompleted, onCheckoutCompleted, onClean, populateEnvironmentVariables, requiresWorkspaceForPolling
-
Constructor Details
-
FallbackToOtherRepositoryGitSCMExtension
public FallbackToOtherRepositoryGitSCMExtension(String cloneLink, String remoteName, List<BranchWithHash> branchWithHashes)
-
-
Method Details
-
decorateRevisionToBuild
public hudson.plugins.git.Revision decorateRevisionToBuild(hudson.plugins.git.GitSCM scm, Run<?, ?> build, org.jenkinsci.plugins.gitclient.GitClient git, TaskListener listener, hudson.plugins.git.Revision marked, hudson.plugins.git.Revision rev) throws InterruptedException- Overrides:
decorateRevisionToBuild
in classhudson.plugins.git.extensions.GitSCMExtension
- Throws:
InterruptedException
-