Class ReadTrustedStep
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
-
- org.jenkinsci.plugins.workflow.steps.Step
-
- org.jenkinsci.plugins.workflow.multibranch.ReadTrustedStep
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.steps.Step>
public class ReadTrustedStep extends org.jenkinsci.plugins.workflow.steps.Step
Replacement forreadFile
which reads from the SCM usingSCMSource.getTrustedRevision(jenkins.scm.api.SCMRevision, hudson.model.TaskListener)
. Refuses to load a file which has been modified in an untrusted revision. If run multiple times, always loads from the same revision. May be used in combination withevaluate
to delegate to more Pipeline Groovy, as a substitute forSCMBinder
, at least untilLoadStepExecution
has been split into an abstract part that aloadTrusted
step could extend.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReadTrustedStep.DescriptorImpl
static class
ReadTrustedStep.Execution
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description ReadTrustedStep(String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getPath()
org.jenkinsci.plugins.workflow.steps.StepExecution
start(org.jenkinsci.plugins.workflow.steps.StepContext context)
-
-
-
Constructor Detail
-
ReadTrustedStep
@DataBoundConstructor public ReadTrustedStep(String path)
-
-