awslabs / aws-devops-essential

In few hours, quickly learn how to effectively leverage various AWS services to improve developer productivity and reduce the overall time to market for new product capabilities.
Apache License 2.0
714 stars 500 forks source link

Bugs in Lab1 and Lab2 buildspec.yml #28

Open john20xdoe opened 4 years ago

john20xdoe commented 4 years ago

Was able to complete Lab 1 and Lab 2 but there are a couple of incorrect settings in the artifacts block that caused build and deploy to fail, respectively.

Are these intentional as a troubleshooting exercise to the user?

Lab1 > Stage 5 > buildspec.yml

   discard-paths: no  

FIX: discard-paths should be yes to work.

Lab2 > Stage 3 > buildspec.yml

artifacts:
  files:
    - appspec.yml
    - scripts/**/*
    - target/javawebdemo.war

FIX: scripts/**/* should be scripts/* to be included in the bundle (otherwise the scripts are missing in CodeDeploy).