AWS CodeBuild,未指定工件文件
AWS CodeBuild, No artifact files specified
AWS CodeBuild 运行 成功,但未将构建移动到 S3。它应该从 Github、运行 一些命令中提取我的代码,然后将所有文件的 ZIP 推送到 S3。
我的 buildspec.yml 在 github:
version: 0.1
phases:
pre_build:
commands:
- echo Pre-build started on `date`
- cp envs/.env.test .env
- composer self-update
- composer install --no-interaction
artifacts:
files:
- '**/*'
这是显示未指定工件文件的日志:
[Container] 2017/04/18 16:33:59 Phase is DOWNLOAD_SOURCE
[Container] 2017/04/18 16:33:59 Source is located at /tmp/src930293331/src
[Container] 2017/04/18 16:33:59 YAML location is /tmp/src930293331/src/buildspec.yml
[Container] 2017/04/18 16:33:59 Registering with agent
[Container] 2017/04/18 16:33:59 Phases found in YAML: 2
[Container] 2017/04/18 16:33:59 ARTIFACTS: 0 commands
[Container] 2017/04/18 16:33:59 PRE_BUILD: 4 commands
[Container] 2017/04/18 16:33:59 Phase complete: DOWNLOAD_SOURCE Success: true
[Container] 2017/04/18 16:33:59 Phase context status code: Message:
[Container] 2017/04/18 16:33:59 Processing plaintext environment variables
[Container] 2017/04/18 16:33:59 Processing build-level environment variables
[Container] 2017/04/18 16:33:59 {}
[Container] 2017/04/18 16:33:59 Processing builtin environment variables
[Container] 2017/04/18 16:33:59 Moving to directory /tmp/src930293331/src
[Container] 2017/04/18 16:33:59 Preparing to copy artifacts
[Container] 2017/04/18 16:33:59 No artifact files specified
控制台中的 CodeDeploy 设置:
我错过了什么?
我修复了我的工件块的缩进并且它有效!它应该没有缩进。
version: 0.1
phases:
pre_build:
commands:
- echo *** Pre-Build ***
- cp envs/.env.test .env
- composer install --no-interaction
artifacts:
files:
- '**/*'
AWS CodeBuild 运行 成功,但未将构建移动到 S3。它应该从 Github、运行 一些命令中提取我的代码,然后将所有文件的 ZIP 推送到 S3。
我的 buildspec.yml 在 github:
version: 0.1
phases:
pre_build:
commands:
- echo Pre-build started on `date`
- cp envs/.env.test .env
- composer self-update
- composer install --no-interaction
artifacts:
files:
- '**/*'
这是显示未指定工件文件的日志:
[Container] 2017/04/18 16:33:59 Phase is DOWNLOAD_SOURCE
[Container] 2017/04/18 16:33:59 Source is located at /tmp/src930293331/src
[Container] 2017/04/18 16:33:59 YAML location is /tmp/src930293331/src/buildspec.yml
[Container] 2017/04/18 16:33:59 Registering with agent
[Container] 2017/04/18 16:33:59 Phases found in YAML: 2
[Container] 2017/04/18 16:33:59 ARTIFACTS: 0 commands
[Container] 2017/04/18 16:33:59 PRE_BUILD: 4 commands
[Container] 2017/04/18 16:33:59 Phase complete: DOWNLOAD_SOURCE Success: true
[Container] 2017/04/18 16:33:59 Phase context status code: Message:
[Container] 2017/04/18 16:33:59 Processing plaintext environment variables
[Container] 2017/04/18 16:33:59 Processing build-level environment variables
[Container] 2017/04/18 16:33:59 {}
[Container] 2017/04/18 16:33:59 Processing builtin environment variables
[Container] 2017/04/18 16:33:59 Moving to directory /tmp/src930293331/src
[Container] 2017/04/18 16:33:59 Preparing to copy artifacts
[Container] 2017/04/18 16:33:59 No artifact files specified
控制台中的 CodeDeploy 设置:
我错过了什么?
我修复了我的工件块的缩进并且它有效!它应该没有缩进。
version: 0.1
phases:
pre_build:
commands:
- echo *** Pre-Build ***
- cp envs/.env.test .env
- composer install --no-interaction
artifacts:
files:
- '**/*'