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:

Screen_Shot_2021-01-22_at_9.06.57_AM.png

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?
0 out of 1 found this helpful

Comments

0 comments

Article is closed for comments.