我正在尝试让CodePipeline从GitHub获取我的代码并使用CodeBuild构建它。第一个(源)步骤正常工作。但是第二个(构建)步骤在“UPLOAD_ARTIFACTS”部分失败。以下是相关的日志语句:
[Container] 2017/01/12 17:21:31 Assembling file list
[Container] 2017/01/12 17:21:31 Expanding MyApp
[Container] 2017/01/12 17:21:31 Skipping invalid artifact path MyApp
[Container] 2017/01/12 17:21:31 Phase complete: UPLOAD_ARTIFACTS Success: false
[Container] 2017/01/12 17:21:31 Phase context status code: ARTIFACT_ERROR Message: No matching artifact paths found
[Container] 2017/01/12 17:21:31 Runtime error (No matching artifact paths found)
我的应用程序在其根文件夹中有一个buildspec.yml。它看起来像:
version: 0.1
phases:
build:
commands:
- echo `$BUILD_COMMAND`
artifacts:
discard-paths: yes
files:
- MyApp
看起来我的buildspec.yml中的"MyApp"应该是其他东西,但是我浏览了所有的AWS文档都没有找到答案(这有什么新鲜事吗?)。我该如何使它正确地上传artifact?