我已经设置了一个使用批生成的构建作业。
两个批将构建一些东西,上传到S3并将位置输出到一个json文件中。
最后一批文件应该拿起两个json文件,并将它们用于更多的事情。
我的问题:,我在上一次工作中找不到工件。
当我在前两个工作中使用ls时,它们是存在的--但不是在最后一个。
这是我的建筑规范,把不重要的部件移走了。
version: 0.2
batch:
fast-fail: true
build-graph:
- identifier: template_examplehook
- identifier: s3_checkbucketencryptionhook
- identifier: stackset
buildspec: automation/assemble-template.yaml
depend-on:
- template_examplehook
- s3_checkbucketencryptionhook
phases:
install:
runtime-versions:
python: 3.7
pre_build:
commands:
- echo "Starting ..."
- ...
build:
commands:
- echo "Building with $(python --version)"
- cd $CODEBUILD_BATCH_BUILD_IDENTIFIER
- ---
- echo $S3_URI_PACKAGE > hash.json
- ---
post_build:
commands:
- echo Build completed on $(date)
artifacts:
files:
- '*/hash.json' 我希望在它们各自的文件夹中找到hash.json文件,但它们在最后一批作业中不存在。
发布于 2022-11-18 12:35:39
在与我们的AWS技术支持部门交谈后进行更新:
出乎意料的行为,它应该像我们想象的那样起作用,但它不能。
最后,我们重写了它,并执行了两个不同的构建步骤。
https://stackoverflow.com/questions/74221305
复制相似问题