How to collect dependency info from freestyle job with maven build step

15 views
Skip to first unread message

Itai Marko

unread,
Mar 12, 2015, 6:22:25 AM3/12/15
to jenkin...@googlegroups.com
Hi,

I'm working on the WhiteSource plugin to add support for freestyle jobs which have build steps that invoke maven targets.

Currently, what it does is to scan each dependency jar and send information about it (e.g file name and sha1) to the WhiteSource server.
In a Maven job this is done by extending the MavenReporter class and getting the artifacts from the MavenProject parameter of the postBuild method.
In a freestyle job (with no Maven build steps), the user specifies a 'lib' directory that contains the jars to scan.

I need to also support freestyle jobs that have Maven build steps but I can't find an extension point for that.
How can I access the dependency jars of a Maven build step in a freestyle job.

Thanks,
Itai
Reply all
Reply to author
Forward
0 new messages