user389955
user389955

Reputation: 10467

How to see Test result in Codedeploy

I want to have a test stage in codepipeline. to do that I create a codedeploy as a stage of codepipeline, the appspec.yml is:

version: 0.0
os: linux
files:
  - source: test
    destination: /mycodedeploy/test
hooks:
  AfterInstall:
    - location: test/run_test.sh
    - timeout: 3600

the code deploy completes successfully, except I do not see test result of test/run_test.sh in AWS console. Where can I see the test result like?

"Ran 1 test in 0.000s

OK" 

?

Upvotes: 1

Views: 130

Answers (1)

EmptyArsenal
EmptyArsenal

Reputation: 7464

You won't be able to see the logs from your script in the AWS console unless you configure your instance to publish the logs to CloudWatch.

You should be able to see the logs on the host here: /opt/codedeploy-agent/deployment-root/deployment-logs/codedeploy-agent-deployments.log. If you don't publish them to CloudWatch, you'll have to manually look on the host. Here's more information on CodeDeploy agent logging.

Upvotes: 2

Related Questions