How To Fail CodeDeploy When Hook Throws StdErr - Windows

1

Hi, I have CodeDeploy setup with an appspec file that calls a BeforeInstall.cmd and an AfterInstall.cmd. This is run on a Windows EC2 machine. I am finding that when there are stderr that occur within those hook scripts, the main CodeDeploy does not fail but shows as a success. I have seen people mention that you can somehow check the exit code but am unsure how to do this? Can someone shed some light on this please? Essentially, I would like the deployment to fail if there are any stderrs that occur.

thanks

已提问 2 年前83 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则