Optional
Readonly
additionalAdditional FileSets to put in other directories
Specifies a mapping from directory name to FileSets. During the script execution, the FileSets will be available in the directories indicated.
The directory names may be relative. For example, you can put the main input and an additional input side-by-side with the following configuration:
const script = new pipelines.ShellStep('MainScript', {
commands: ['npm ci','npm run build','npx cdk synth'],
input: pipelines.CodePipelineSource.gitHub('org/source1', 'main'),
additionalInputs: {
'../siblingdir': pipelines.CodePipelineSource.gitHub('org/source2', 'main'),
}
});
Readonly
commandsCommands to run
Optional
Readonly
envEnvironment variables to set
Optional
Readonly
envSet environment variables based on Stack Outputs
ShellStep
s following stack or stage deployments may
access the CfnOutput
s of those stacks to get access to
--for example--automatically generated resource names or
endpoint URLs.
Optional
Readonly
inputFileSet to run these scripts on
The files in the FileSet will be placed in the working directory when
the script is executed. Use additionalInputs
to download file sets
to other directories as well.
Optional
Readonly
installInstallation commands to run before the regular commands
For deployment engines that support it, install commands will be classified
differently in the job history from the regular commands
.
Optional
Readonly
primaryThe directory that will contain the primary output fileset
After running the script, the contents of the given directory will be treated as the primary output of this Step.
Construction properties for a
ShellStep
.