Class FallbackToOtherRepositoryGitSCMExtension

java.lang.Object
hudson.model.AbstractDescribableImpl<hudson.plugins.git.extensions.GitSCMExtension>
hudson.plugins.git.extensions.GitSCMExtension
com.cloudbees.jenkins.plugins.bitbucket.impl.extension.FallbackToOtherRepositoryGitSCMExtension
All Implemented Interfaces:
Describable<hudson.plugins.git.extensions.GitSCMExtension>
Direct Known Subclasses:
FallbackToOtherRepositoryGitSCMExtension

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 Details

    • FallbackToOtherRepositoryGitSCMExtension

      @DataBoundConstructor 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
    • getCloneLink

      public String getCloneLink()
    • getRemoteName

      public String getRemoteName()
    • getBranchWithHashes

      public List<BranchWithHash> getBranchWithHashes()