Optional
Readonly
actionCustom execution role to be used for the Code Build Action
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'),
}
});
Optional
Readonly
buildChanges to environment
This environment will be combined with the pipeline's default environment.
Optional
Readonly
cacheCaching strategy to use.
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
fileProjectFileSystemLocation 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
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
loggingInformation about logs for CodeBuild projects. A CodeBuild project can create logs in Amazon CloudWatch Logs, an S3 bucket, or both.
Optional
Readonly
partialAdditional 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
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.
Optional
Readonly
projectName for the generated CodeBuild project
Optional
Readonly
roleCustom execution role to be used for the CodeBuild project
Optional
Readonly
rolePolicy statements to add to role used during the synth
Can be used to add acces to a CodeArtifact repository etc.
Optional
Readonly
securityWhich 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
Readonly
subnetWhich subnets to use.
Only used if 'vpc' is supplied.
Optional
Readonly
timeoutThe 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
Readonly
vpcThe VPC where to execute the SimpleSynth.
Construction props for a CodeBuildStep