Class ResolveScmStep
java.lang.Object
hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
org.jenkinsci.plugins.workflow.steps.Step
org.jenkinsci.plugins.workflow.multibranch.ResolveScmStep
- All Implemented Interfaces:
ExtensionPoint,Describable<org.jenkinsci.plugins.workflow.steps.Step>
public class ResolveScmStep
extends org.jenkinsci.plugins.workflow.steps.Step
Resolves an
SCM from a SCMSource using a priority list of target branch names.- Since:
- 2.10
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
ConstructorsConstructorDescriptionResolveScmStep(jenkins.scm.api.SCMSource source, List<String> targets) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionjenkins.scm.api.SCMSourceGets theSCMSourceto resolve from.Gets theSCMHeadnames to try and resolve.booleanReturnstrueif and only if errors will be ignored.voidsetIgnoreErrors(boolean ignoreErrors) Sets the error handling behaviour.org.jenkinsci.plugins.workflow.steps.StepExecutionstart(org.jenkinsci.plugins.workflow.steps.StepContext context) toString()Methods inherited from class org.jenkinsci.plugins.workflow.steps.Step
getDescriptor
-
Constructor Details
-
Method Details
-
getSource
@NonNull public jenkins.scm.api.SCMSource getSource()Gets theSCMSourceto resolve from.- Returns:
- the
SCMSourceto resolve from.
-
getTargets
Gets theSCMHeadnames to try and resolve.- Returns:
- the
SCMHeadnames to try and resolve.
-
isIgnoreErrors
public boolean isIgnoreErrors()Returnstrueif and only if errors will be ignored.- Returns:
trueif and only if errors will be ignored.
-
setIgnoreErrors
@DataBoundSetter public void setIgnoreErrors(boolean ignoreErrors) Sets the error handling behaviour.- Parameters:
ignoreErrors-trueif and only if errors will be ignored.
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception - Specified by:
startin classorg.jenkinsci.plugins.workflow.steps.Step- Throws:
Exception
-
toString
-