OWASP Dependency-Check Plugin Configuration as Code

60 views
Skip to first unread message

Jonerc

unread,
Apr 7, 2020, 12:12:44 PM4/7/20
to Jenkins Users
Hi,

I have been searching without success for any examples of configuring the dependency-check plugin global tools settings via code.

There requirement is fairly simple, add a Dependency-Check Installation details in the Global Tools settings (Which comprises of 3 values, name, version and whether to install automatically).

We normally have bits of groovy to configure the various plugins we use (and normally have to go searching through source code test to work out how to do it), but for this particular one we are struggling.

Any help much appreciated.

Thanks.

RAJENDRA PRASAD

unread,
Apr 7, 2020, 1:42:36 PM4/7/20
to jenkins...@googlegroups.com
What build tool you are using in project , if you are using maven or gradle it is pretty simple to configure dependency plugin as code.
Add that plugin then those plugins will add additional tasks, run those tasks using build tool...
you can trigger the tasks from shell prompt inside the job



Thanks and Regards,
Rajendra Prasad Reddy Penumalli


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9d5240e8-d7ee-4497-9801-5ef09e191fe1%40googlegroups.com.

Surjit Bains

unread,
Apr 7, 2020, 4:11:29 PM4/7/20
to jenkins...@googlegroups.com
Here's a snippet from the end of our working JCaC yaml, we define it as a global tool also...

tool:
  dependency-check:
    installations:
    - name: "5.3.2"
      properties:
      - installSource:
          installers:
          - dependencyCheckInstaller:
              id: "5.3.2"
  git:
    installations:
    - home: "git"
      name: "Default"

be sure to include the plugin  OWASP Dependency-Check Plugin> 5.1.1

regards

Surj



--
Surjit Bains
e: surjit...@gmail.com
m: 07966 161 302
Reply all
Reply to author
Forward
0 new messages