I'm going to use dependency-check on Jenkins to check a .NET build.
I have added a Dependency-Check installation to Jenkins' Global Tool Configuration.
In my Jenkins Pipeline, I have:
environment {
DEPENDENCY_CHECK = tool name: 'Dependency Check', type: 'org.jenkinsci.plugins.DependencyCheck.tools.DependencyCheckInstallation'
}
and
stage('Dependency Check') {
steps {
println 'Dependency Check'
println DEPENDENCY_CHECK.toString()
}
}
(Just for now)
Can confirm:
* In the build log I see
* In the build log I see
14:53:23 Dependency Check
14:53:23 C:\Jenkins\tools\org.jenkinsci.plugins.DependencyCheck.tools.DependencyCheckInstallation\Dependency_Check
* On the build node, a new directory C:\Jenkins\tools\org.jenkinsci.plugins.DependencyCheck.tools.DependencyCheckInstallation\Dependency_Check contains the correct files.
Now.
I'm using a local database in MySQL, so I need to put an additional file mysql-connector-java-8.0.22.jar inside a plugins folder in the installation folder.
How do I do that in the Jenkins Global Tool Configuration? If I add a second installer to copy the mysql jar, then it only installs that one single jar file.