[JIRA] (JENKINS-61419) Aqua security scanner IOException Failed to copy styles.css with non-default hudson.PluginManager.workDir

2 views
Skip to first unread message

jenkins@lightning318.co.uk (JIRA)

unread,
Mar 10, 2020, 12:25:03 PM3/10/20
to jenkinsc...@googlegroups.com
Jonathan Bull created an issue
 
Jenkins / Bug JENKINS-61419
Aqua security scanner IOException Failed to copy styles.css with non-default hudson.PluginManager.workDir
Issue Type: Bug Bug
Assignee: Moshe Cohen
Components: aqua-security-scanner-plugin
Created: 2020-03-10 16:24
Environment: Jenkins version: 2.190.2.2
Aqua security scanner version: 3.0.21
Priority: Major Major
Reporter: Jonathan Bull

The plugin is hard coded to copy the styles.css file from $JENKINS_HOME/plugins/aqua-security-scanner/css/styles.css to the workspace directory (See github). However, if the Jenkins setting hudson.PluginManager.workDir has been changed to a non-default value then plugins are unpacked at that location instead of $JENKINS_HOME/plugins which causes the following exception:

 

Exception:java.io.IOException: Failed to copy [$JENKINS_HOME]/plugins/aqua-security-scanner/css/styles.css to [$WORKSPACE]/styles.css

How to reproduce

 

  • Stop jenkins
  • Remove all plugin folders from $JENKINS_HOME/plugins. Leave the jpi files.
  • Start jenkins with hudson.PluginManager.workDir set to a directory other than $JENKINS_HOME/plugins
    • Plugin directories will be created in the new directory rather than $JENKINS_HOME/plugins
  • Attempt to run a build using the Aqua plugin
    • The exception is thrown after the plugin has scanned the image

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages