How do I get the "changes" (commit message) that triggered a Jenkins build?
Here's an example of how to get the comment, affected files and commit ID from a Jenkins build:
curl http://jenkins/job/JOB_NAME/BUILD_NUMBER/api/json?pretty=true&tree=changeSet[items[comment,affectedPaths,commitId]]
Here's an explanation of how the tree and depth parameters work.