2 個答案
- 最新
- 最多得票
- 最多評論
0
The error you're getting sounds like it could have something to do the clone depth on CodeBuild, which by default is 1.
In your build project, try Edit > Source, expanding the additional configuration, and try changing the Git clone depth to Full to begin with. If that works, you might be able to reduce the depth to speed up the build.
已回答 2 年前
0
Exit status 128 can mean a number of things. Do you get any other messages above that line in the logs? There should be a more verbose error message that might help.
It should look something like this:
[Container] 2022/01/01 00:00:00 Running command git log -1 --format="%an <%ae>" --test
fatal: unrecognized argument: --test
已回答 2 年前
相關內容
- 已提問 6 個月前
[Container] 2022/07/08 18:17:46 Phase complete: PRE_BUILD State: SUCCEEDED [Container] 2022/07/08 18:17:46 Phase context status code: Message: [Container] 2022/07/08 18:17:46 Entering phase BUILD [Container] 2022/07/08 18:17:46 Running command git log -1 --format="%an <%ae>" error: Could not read 426258ef330179881b171f345ec12f1fbd323251 fatal: Failed to traverse parents of commit 6c63149a5858f3c6ad8f05f2db9be0869b879d8f
[Container] 2022/07/08 18:17:46 Command did not exit successfully git log -1 --format="%an <%ae>" exit status 128 [Container] 2022/07/08 18:17:46 Phase complete: BUILD State: FAILED [Container] 2022/07/08 18:17:46 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: git log -1 --format="%an <%ae>". Reason: exit status 128 [Container] 2022/07/08 18:17:46 Entering phase POST_BUILD [Container] 2022/07/08 18:17:46 Phase complete: POST_BUILD State: SUCCEEDED [Container] 2022/07/08 18:17:46 Phase context status code: Message:
this is my latest commit 6c63149a5858f3c6ad8f05f2db9be0869b879d8f And after commit, this code build will trigger, but I'm not able to access author name and email from latest commit