@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-02-09T02:14:40.638Z") public class FileSet extends software.amazon.jsii.JsiiObject implements IFileSetProducer
Individual steps in the pipeline produce or consume
FileSet
s.
Example:
public class MyJenkinsStep extends Step implements ICodePipelineActionFactory { public MyJenkinsStep(JenkinsProvider provider, FileSet input) { super("MyJenkinsStep"); // This is necessary if your step accepts parametres, like environment variables, // that may contain outputs from other steps. It doesn't matter what the // structure is, as long as it contains the values that may contain outputs. this.discoverReferencedOutputs(Map.of( "env", Map.of())); } 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(); } }
IFileSetProducer.Jsii$Default, IFileSetProducer.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
FileSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
FileSet(software.amazon.jsii.JsiiObjectRef objRef) |
|
FileSet(java.lang.String id,
Step producer) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getId()
Human-readable descriptor for this file set (does not need to be unique).
|
FileSet |
getPrimaryOutput()
The primary output of a file set producer.
|
Step |
getProducer()
The Step that produces this FileSet.
|
void |
producedBy()
Mark the given Step as the producer for this FileSet.
|
void |
producedBy(Step producer)
Mark the given Step as the producer for this FileSet.
|
java.lang.String |
toString()
Return a string representation of this FileSet.
|
protected FileSet(software.amazon.jsii.JsiiObjectRef objRef)
protected FileSet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public FileSet(java.lang.String id, Step producer)
id
- Human-readable descriptor for this file set (does not need to be unique). This parameter is required.producer
- public void producedBy(Step producer)
This method can only be called once.
producer
- public void producedBy()
This method can only be called once.
public java.lang.String toString()
public java.lang.String getId()
public Step getProducer()
public FileSet getPrimaryOutput()
The primary output of a FileSet is itself.
getPrimaryOutput
in interface IFileSetProducer