Optional ReadonlyactionCustom execution role to be used for the Code Build Action
Optional ReadonlyadditionalAdditional 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'),
}
});
Optional ReadonlybuildChanges to environment
This environment will be combined with the pipeline's default environment.
Optional ReadonlycacheCaching strategy to use.
ReadonlycommandsCommands to run
Optional ReadonlyenvEnvironment variables to set
Optional ReadonlyenvSet environment variables based on Stack Outputs
ShellSteps following stack or stage deployments may
access the CfnOutputs of those stacks to get access to
--for example--automatically generated resource names or
endpoint URLs.
Optional ReadonlyfileProjectFileSystemLocation objects for CodeBuild build projects.
A ProjectFileSystemLocation object specifies the identifier, location, mountOptions, mountPoint, and type of a file system created using Amazon Elastic File System.
Optional ReadonlyinputFileSet 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 ReadonlyinstallInstallation 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 ReadonlyloggingInformation about logs for CodeBuild projects. A CodeBuild project can create logs in Amazon CloudWatch Logs, an S3 bucket, or both.
Optional ReadonlypartialAdditional configuration that can only be configured via BuildSpec
You should not use this to specify output artifacts; those should be supplied via the other properties of this class, otherwise CDK Pipelines won't be able to inspect the artifacts.
Set the commands to an empty array if you want to fully specify
the BuildSpec using this field.
The BuildSpec must be available inline--it cannot reference a file on disk.
Optional ReadonlyprimaryThe 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.
Optional ReadonlyprojectName for the generated CodeBuild project
Optional ReadonlyroleCustom execution role to be used for the CodeBuild project
Optional ReadonlyrolePolicy statements to add to role used during the synth
Can be used to add acces to a CodeArtifact repository etc.
Optional ReadonlysecurityWhich security group to associate with the script's project network interfaces. If no security group is identified, one will be created automatically.
Only used if 'vpc' is supplied.
Optional ReadonlysubnetWhich subnets to use.
Only used if 'vpc' is supplied.
Optional ReadonlytimeoutThe number of minutes after which AWS CodeBuild stops the build if it's not complete. For valid values, see the timeoutInMinutes field in the AWS CodeBuild User Guide.
Optional ReadonlyvpcThe VPC where to execute the SimpleSynth.
Construction props for a CodeBuildStep