jenkinsci / aqua-microscanner-plugin

Enables scanning of docker builds in Jenkins for OS package vulnerabilities.
https://plugins.jenkins.io/aqua-microscanner/
Apache License 2.0
35 stars 20 forks source link

Jenkins is not passing in token into the plugin #17

Closed pbradly closed 5 years ago

pbradly commented 5 years ago

Describe the bug I have installed version 1.0.6 of Aqua microscanner in our instance of jenkins and have defined the token value in Configure System -> Aqua MicroScanner. However it does not appear to be passing in the token as we are getting the following error in the jenkins logs;

Aqua MicroScanner in progress... The command '/bin/sh -c ./microscanner ${token} --html' returned a non-zero code: 1 ... ERROR: failed fetching server information: request failed: Get https://microscanner.aquasec.com/api: EOF

To Reproduce Steps to reproduce the behavior:

  1. Generate a new token; docker run --rm -it aquasec/microscanner --register
  2. Install Aqua MicroScaner plugin version 1.0.6
  3. Define new token in Configure System -> Aqua MicroScanner.
  4. Execute Aqua scan via JenkinsFile command; aquaMicroscanner imageName: image_name, notCompliesCmd: '', onDisallowed: 'ignore', outputFormat: 'html' where imageName is defined inside our jenkinsfile
  5. Execute build in Jenkins

Expected behavior Aqua scan is completed in image, and a html report is generated

oranmoshai commented 5 years ago

Hi @pbradly,

I tested with fresh Jenkins installation and didn't find any issue.

}`

oranmoshai commented 5 years ago

I will close this for now please open if you have any issue

Thank you