Use the WebHook
You can forward Bamboo job results to a WebHook URL in one of the the following ways:
- Set a global WebHook URL under Administration > Add-ons > Scan container images with Qualys CS Plugin.
OR
- Set WebHook URL for local configuration in the Tasks tab for a plan by selecting Scan container images with Qualys CS Plugin.
WebHook URL specified under local configuration for a particular project always takes preference over the global WebHook URL specified under Administration > Add-ons > Scan container images with Qualys CS Plugin.
WebHook data sample
"WebHook data sample"{
"buildNumber":135,
"planName":"Bamboo Docker Image Analyzer Plugin 1.6.0.0 - Default Job",
"planKey":"BDIAP1-BCP1FBCNATC-JOB1",
"buildStatus":"Failed",
"failReason":[
{
"imageId":"10c550a8b09e",
"software":{
"configured":"xz-utils, ABC, sed, UCF, unzip, TZDATA=2019a-0+deb9u1",
"found":"sed=4.5-3.fc30"
},
"severities":{
"1":{
"configured":0,
"found":1
}
},
"cvss":{
"configured":1.9,
"found":6,
"version":2
}
}
],
"images":[
{
"imageId\/name":"fedora\/httpd",
"imageId":"10c550a8b09e",
"uuid":"71295b15-56f5-3202-a110-ee78c0b54f37",
"sha":"10c550a8b09ec47729c1bb6e7a0dea57d9c58985a7e137a1dad181f41ca27cc9",
"size":321297635,
"repo":[
{
"registry":"docker.io",
"tag":"latest",
"repository":"fedora\/httpd"
}
],
"operatingSystem":"Fedora 30",
"layersCount":7,
"dockerVersion":"17.06.0-ce",
"architecture":"amd64",
"vulnerabilities":{
"totalVulnerabilities":6,
"typeDetected":{
"Confirmed":1,
"Potential":5
},
"severity":{
"Potential":{
"1":1,
"2":0,
"3":4,
"4":0,
"5":0
},
"Confirmed":{
"1":0,
"2":1,
"3":0,
"4":0,
"5":0
}
},
"patchable":{
"yes":5,
"no":1
}
}
}
]
}