[JIRA] (JENKINS-61014) Anchore plugin overwrittes pipeline reports

6 views
Skip to first unread message

Juan.D.Caldas@Raytheon.com (JIRA)

unread,
Feb 7, 2020, 10:47:02 AM2/7/20
to jenkinsc...@googlegroups.com
Juan Caldas created an issue
 
Jenkins / Bug JENKINS-61014
Anchore plugin overwrittes pipeline reports
Issue Type: Bug Bug
Assignee: Daniel Nurmi
Components: anchore-container-scanner-plugin
Created: 2020-02-07 15:46
Priority: Minor Minor
Reporter: Juan Caldas

Hi,

My pipeline has multiple stages and each stage creates a docker image.

there are two issues, first at the end of the pipeline I end up having 3 separate 'Achore reports' but they all have the same data (the Achore Policy Evaluation Report has the results for the 3 scans). Second, the 'Anchore Policy Evaluation Summary' shows the same image for the 3 different 'Anchore reports'

The pipeline process is something like

  • Create base image
  • Create Builder image
  • Create Runner image

 

I check each image after each stage (so that it fails if one of them had issues)

I run

anchore(name: IMAGES_FILE_PATH, engineRetries: '1000', forceAnalyze: true,
policyBundleId: 'policyName')

I tried using different names for the IMAGES_FILE_PATH but it yields the same problems

 

it would be nice if each report only had the information about that one image

 

Sorry if I didnt provided enough details, I would be happy to add more info

Thanks!

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

Juan.D.Caldas@Raytheon.com (JIRA)

unread,
Feb 7, 2020, 10:52:02 AM2/7/20
to jenkinsc...@googlegroups.com
Juan Caldas updated an issue
Change By: Juan Caldas
Hi,

My pipeline has multiple stages and each stage creates a docker image.

there are two issues, first at the end of the pipeline I end up having 3 separate 'Achore reports' but they all have the same data (the Achore Policy Evaluation Report has the results for the 3 scans). Second, the 'Anchore Policy Evaluation Summary' shows the same image for the 3 different 'Anchore reports'

The pipeline process is something like
* Create base image
* Create Builder image
* Create Runner image


 

I check each image after each stage (so that it fails if one of them had issues)

I run

anchore(name: IMAGES_FILE_PATH, engineRetries: '1000', forceAnalyze: true,
policyBundleId: 'policyName')

I tried using different names for the IMAGES_FILE_PATH but it yields the same problems

 

it would be nice if each report only had the information about that one image

 

Sorry if I didnt provided enough details, I would be happy to add more info


Thanks!

 

Edit:

Kind of related stack overflow issue

[https://stackoverflow.com/questions/57367074/adding-multiple-docker-images-in-jenkins-pipeline-to-scan-security-vulnerabiliti]

with the exception that I cant wait until the end to scan the images
Reply all
Reply to author
Forward
0 new messages