-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error passing JAVA_OPTS with spaces and quotes #2282
Comments
The script is generated by the |
This space issue not only exists in JAVA_OPT, but also in any params passed in. e.g.
|
* add updated unixBinTemplate per #2282 - allows spaces in JVM_OPTS * updated due to changes at the nvd: https://nvd.nist.gov/vuln/detail/CVE-2018-1002201#VulnChangeHistorySection * add updated unixBinTemplate per #2282 - allows spaces in JVM_OPTS
@vweng The problem with your solution above is that it removes the $JAVA_OPTS entirely. |
@Silwing can you use:
|
@jeremylong Sorry, here is the scripts with updated JAVA_OPTS included, note the dependency-check.sh must be updated to use #!/bin/bash:
|
Describe the bug
We are using the Dependency Check Jenkins plugin.
To relax the Jenkins content security policy we have set JAVA_OPTS as described here: https://wiki.jenkins.io/display/JENKINS/Configuring+Content+Security+Policy
However when doing that running dependency-check.sh generates the following error:
Error: Could not find or load main class 'self'
** Version of dependency-check used **
The problem occurs using version 5.2.2 of the the cli.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected to print usage text.
Additional context
Jenkins has had the same issue described here with attached fix as well: jenkinsci/docker#213
The text was updated successfully, but these errors were encountered: