-
Notifications
You must be signed in to change notification settings - Fork 988
Description
Using local codebuild, my buildspec does not seem to be fail to the codebuild phase transistion:
https://docs.aws.amazon.com/codebuild/latest/userguide/view-build-details.html#view-build-details-phases
I enter some random commands in order to force a failure in a stage under local:
agent_1 | [Container] 2018/07/29 23:51:23 Phase context status code: Message:
agent_1 | [Container] 2018/07/29 23:51:23 Entering phase INSTALL
agent_1 | [Container] 2018/07/29 23:51:23 Running command juawefhkejfhekj
agent_1 | /codebuild/output/tmp/script.sh: 4: /codebuild/output/tmp/script.sh: juawefhkejfhekj: not found
agent_1 |
agent_1 | [Container] 2018/07/29 23:51:23 Command did not exit successfully juawefhkejfhekj exit status 127
agent_1 | [Container] 2018/07/29 23:51:23 Phase complete: INSTALL Success: false
agent_1 | [Container] 2018/07/29 23:51:23 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: juawefhkejfhekj. Reason: exit status 127
agent_1 | [Container] 2018/07/29 23:51:23 Entering phase PRE_BUILD
agent_1 | [Container] 2018/07/29 23:51:23 Phase complete: PRE_BUILD Success: true
Using non-local codebuild with exactly the same code:
[Container] 2018/07/29 23:57:38 Phase context status code: Message:
[Container] 2018/07/29 23:57:38 Entering phase INSTALL
[Container] 2018/07/29 23:57:38 Running command juawefhkejfhekj
/codebuild/output/tmp/script.sh: 4: /codebuild/output/tmp/script.sh: juawefhkejfhekj: not found
[Container] 2018/07/29 23:57:38 Command did not exit successfully juawefhkejfhekj exit status 127
[Container] 2018/07/29 23:57:38 Phase complete: INSTALL Success: false
[Container] 2018/07/29 23:57:38 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: juawefhkejfhekj. Reason: exit status 127
Local would continue and proceed and exit with code 0, non-local will exit at failure with error.