2

I am attempting to deploy via AWS CodeDeploy. However it always fails at before-insatll with the following error.

No such file or directory - /opt/codedeploy-agent/deployment-root/xxxxx/xxxxxx/deployment-archive/appspec.yml

The ZIP files that I have loaded in S3 bucket is following the defined structure here.

  |--content (subfolder)
  |    |--myTextFile.txt
  |    |--mySourceFile.rb
  |    |--myExecutableFile.exe
  |    |--myInstallerFile.msi
  |    |--myPackage.rpm
  |    |--myImageFile.png
  |--scripts (subfolder)
  |    |--myShellScript.sh
  |    |--myBatchScript.bat 
  |    |--myPowerShellScript.ps1 
  |--appspec.yml

I really can't figure out what is going wrong. Any help would be greatly appreciated.

Yonkee
  • 1,781
  • 3
  • 31
  • 56
  • For another possible solution, also see my answer http://stackoverflow.com/questions/38740298/jenkins-triggered-code-deploy-is-failing-at-applicationstop-step-even-though-sam/38770917#38770917 – Rodrigo Murillo Aug 04 '16 at 15:07

1 Answers1

4
binbinlu
  • 416
  • 2
  • 5