@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:16.707Z") @Stability(value=Experimental) public abstract class Step extends software.amazon.jsii.JsiiObject implements IFileSetProducer
Steps can be used to add Sources, Build Actions and Validations to your pipeline.
This class is abstract. See specific subclasses of Step for useful steps to add to your Pipeline
Example:
public class MyJenkinsStep extends Step implements ICodePipelineActionFactory {
public MyJenkinsStep(JenkinsProvider provider, FileSet input) {
super("MyJenkinsStep");
}
public CodePipelineActionFactoryResult produceAction(IStage stage, ProduceActionOptions options) {
// This is where you control what type of Action gets added to the
// CodePipeline
stage.addAction(JenkinsAction.Builder.create()
// Copy 'actionName' and 'runOrder' from the options
.actionName(options.getActionName())
.runOrder(options.getRunOrder())
// Jenkins-specific configuration
.type(JenkinsActionType.TEST)
.jenkinsProvider(this.provider)
.projectName("MyJenkinsProject")
// Translate the FileSet into a codepipeline.Artifact
.inputs(List.of(options.artifacts.toCodePipeline(this.input)))
.build());
return CodePipelineActionFactoryResult.builder().runOrdersConsumed(1).build();
}
}
software.amazon.jsii.JsiiObject.InitializationModeIFileSetProducer.Jsii$Default| Modifier | Constructor and Description |
|---|---|
protected |
Step(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Step(software.amazon.jsii.JsiiObjectRef objRef) |
protected |
Step(String id) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDependencyFileSet(FileSet fs)
(experimental) Add an additional FileSet to the set of file sets required by this step.
|
protected void |
configurePrimaryOutput(FileSet fs)
(experimental) Configure the given FileSet as the primary output of this step.
|
List<Step> |
getDependencies()
(experimental) Return the steps this step depends on, based on the FileSets it requires.
|
List<FileSet> |
getDependencyFileSets()
(experimental) The list of FileSets consumed by this Step.
|
String |
getId()
(experimental) Identifier for this step.
|
Boolean |
getIsSource()
(experimental) Whether or not this is a Source step.
|
FileSet |
getPrimaryOutput()
(experimental) The primary FileSet produced by this Step.
|
String |
toString()
(experimental) Return a string representation of this Step.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Step(software.amazon.jsii.JsiiObjectRef objRef)
protected Step(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
protected Step(@NotNull
String id)
id - Identifier for this step. This parameter is required.@Stability(value=Experimental)
protected void addDependencyFileSet(@NotNull
FileSet fs)
This will lead to a dependency on the producer of that file set.
fs - This parameter is required.@Stability(value=Experimental)
protected void configurePrimaryOutput(@NotNull
FileSet fs)
fs - This parameter is required.@Stability(value=Experimental) @NotNull public String toString()
@Stability(value=Experimental) @NotNull public List<Step> getDependencies()
@Stability(value=Experimental) @NotNull public List<FileSet> getDependencyFileSets()
@Stability(value=Experimental) @NotNull public String getId()
@Stability(value=Experimental) @NotNull public Boolean getIsSource()
What it means to be a Source step depends on the engine.
@Stability(value=Experimental) @Nullable public FileSet getPrimaryOutput()
Not all steps produce an output FileSet--if they do
you can substitute the Step object for the FileSet object.
getPrimaryOutput in interface IFileSetProducerCopyright © 2022. All rights reserved.