Class BuildStrategyCredentialsProperty

java.lang.Object
hudson.model.AbstractDescribableImpl<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>
com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<com.cloudbees.hudson.plugins.folder.AbstractFolder<?>>
com.igalg.jenkins.plugins.multibranch.buildstrategy.BuildStrategyCredentialsProperty
All Implemented Interfaces:
ExtensionPoint, Describable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>, ReconfigurableDescribable<com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<?>>

public class BuildStrategyCredentialsProperty extends com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<com.cloudbees.hudson.plugins.folder.AbstractFolder<?>>
Project-scoped override for the credential used by branch build strategies when they perform Git protocol operations (fetch, log) during branch scan.

The underlying strategies always talk Git, not REST. When the SCMSource credential is a REST-only API token (e.g. Atlassian API scoped token with an email username), Git HTTPS auth fails. Setting this property lets those strategies use a separate, Git-compatible credential without changing the SCMSource credential used for branch discovery.

  • Constructor Details

    • BuildStrategyCredentialsProperty

      @DataBoundConstructor public BuildStrategyCredentialsProperty(String credentialsId)
  • Method Details

    • getCredentialsId

      public String getCredentialsId()