-
Notifications
You must be signed in to change notification settings - Fork 7
8 Message Structure
virtualramblas edited this page Mar 11, 2017
·
2 revisions
Any message sent to a Kafka topic is in JSON format and contains the following info:
- build number
- build job name
- execution start datetime
- execution end datetime
- duration (in milliseconds)
- execution status
- the list (key:value pairs) of the parameters for a given run
- the logical name of the node where the build job has been executed
- the name of the computer where the build job has been executed
- details about Git (remote URLs, last built revision reference, branch name)
- other details about the node where the build job has been executed
Here an example:
{
"buildNumber":7,
"name":"KTest",
"startDate":{
"date":8,"day":3,"hours":12,"minutes":14,"month":2,"seconds":57,
"time":1488975297587,"timezoneOffset":0,"year":117
},
"endDate":{
"date":8,"day":3,"hours":12,"minutes":15,"month":2,"seconds":10,
"time":1488975310027,"timezoneOffset":0,"year":117
},
"duration":12440,
"result":"SUCCESS",
"parameters":{
"MONGODB_HOST":"mongodb1.xxx.com",
"MONGODB_PORT":"27018"
},
"nodeName":"master",
"computerName":"XXXXXXXXX",
"gitDetails":{
"remoteURLs":["https://github.com/virtualramblas/publishtokafka-plugin.git"],
"lastBuiltRevision":{
"branches":[{"SHA1":{"firstByte":73,"name":"493ce83487eef93bb119a618ce62811f79fdb26a"},
"SHA1String":"493ce83487eef93bb119a618ce62811f79fdb26a",
"name":"refs/remotes/origin/master"}],
"sha1":{"firstByte":73,"name":"493ce83487eef93bb119a618ce62811f79fdb26a"},
"sha1String":"493ce83487eef93bb119a618ce62811f79fdb26a"
}
},
"nodeDetails":{
"nodeLabels":"master",
"OS":"Windows_NT",
"numberOfProcessors":"4",
"processorArchitecture":"x86",
"processorArchitectureW6432":"AMD64",
"processorIdentifier":"Intel64 Family 6 Model 78 Stepping 3, GenuineIntel",
"computerName":"XXXXXXXXX"
}
}