Jenkins triggered code deploy is failing at ApplicationStop step even though same deployment group via code deploy directly is running successfully

后端 未结 2 1568
栀梦
栀梦 2020-12-21 22:27

When I trigger via Jenkins (code deploy plugin), I get the following error -

 No such file or directory - /opt/codedeploy-agent/deployment-root/edbe4bd2-399         


        
相关标签:
2条回答
  • 2020-12-21 23:06

    As part of its process, CodeDeploy needs to reference previous deployments for Redeployments and Deployment Rollbacks operations. These references are maintained outside of the deployment archive folders. If you delete these archives manually as you indicate, then a CodeDeploy install can get fatally corrupted: the references left to previous deployments are no longer correct or consistent, and deploys will fail.

    The best thing at this point is to remove the old installation completely, and re-install. This will allow the code deploy agent to work correctly again.

    I have learned the hard way not to remove/modify any of the CodeDeploy install folders or files manually. Even if you change apps or deployment groups, CodeDeploy will figure it out itself, without the need for any manual cleanup.

    0 讨论(0)
  • 2020-12-21 23:23

    In order to do a deployment, the bundle needs to contain a appspec.yml file, and the file needs to be put at the top directory. Seems the error message is due to the host agent can't find the appspec.yml file.

    0 讨论(0)
提交回复
热议问题