我正在尝试基于两个源GitHubSourceAction(sourceOutput)和S3SourceAction(source2_Output)的输入,并通过CDK / typescript将它们连接在一起
buildAction = new codepipeline_actions.CodeBuildAction({
actionName: 'my_build',
project: pipelineProject,
input: sourceOutput,
extraInputs: [source2_Output],
进入一个构建过程。但是,已启动实例的文件系统只看到第一个(主要)源的内容。
以某种方式,多余的输入在fs上不可见。甚至不知道extraInputs是否为此设计的。想知道为什么输入不期望数组。
有人知道如何实现它吗?在构建步骤中,我只需要一个合并的代码库。看着S3工件存储桶,我同时拥有两个ZIP(来自两个来源),但是没有在构建期间。
version: 0.2
phases:
build:
commands:
- touch source1_file
- cd $CODEBUILD_SRC_DIR_source2_Output. # <================
- touch source2_file