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

    Constructors
    Constructor
    Description
    FallbackToOtherRepositoryGitSCMExtension(String cloneLink, String remoteName, List<BranchWithHash> branchWithHashes)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class hudson.plugins.git.extensions.GitSCMExtension
      Throws:
      InterruptedException