Messages Key from the CircleCI v2 Job Details Endpoint

Messages Key

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.

Example

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

Comments

0 comments

Article is closed for comments.