What does the messages key from the CircleCI v2 Job Details endpoint contain?

The Get Job Details endpoint contains a messages key and you may wonder what sort of information should be present there.

This key will provide error messages related to the build not running. It will return an empty array on both passing builds and builds that failed while running.

As an example, take this build that didn't run:


This is what would be returned from the API:

"messages" : [ {
    "type" : "warning",
    "reason" : "no-followers",
    "message" : "Your build was not run - reason code (no-followers)."
  }, {
    "type" : "error",
    "message" : "We did not test this push because nobody is following the project"
  } ],
Was this article helpful?
1 out of 7 found this helpful



Article is closed for comments.