Build failure in Jenkins: DependencyCheckAnalyzer

297 views
Skip to first unread message

Jason Flowers

unread,
Jul 25, 2019, 9:27:26 AM7/25/19
to Jenkins Users
I am getting a build failure in Jenkins with our maven dependencycheckanalyzer. This is a piece of code we haven't changed and was working for a long time and randomly started failing our builds yesterday.. apart from commented out the code to run the dependency check, any idea on how to resolve? 


java.lang.NoSuchMethodError: No such DSL method 'dependencyCheckAnalyzer' found among steps [ansiColor, ... ] 

Slide

unread,
Jul 25, 2019, 9:48:28 AM7/25/19
to Jenkins User Mailing List
Did anything get updated on your Jenkins instance?

On Thu, Jul 25, 2019, 06:27 Jason Flowers <jasonfl...@gmail.com> wrote:
I am getting a build failure in Jenkins with our maven dependencycheckanalyzer. This is a piece of code we haven't changed and was working for a long time and randomly started failing our builds yesterday.. apart from commented out the code to run the dependency check, any idea on how to resolve? 


java.lang.NoSuchMethodError: No such DSL method 'dependencyCheckAnalyzer' found among steps [ansiColor, ... ] 

--
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/df0c1698-f90d-498d-b112-4541874328b5%40googlegroups.com.

Jason Flowers

unread,
Jul 25, 2019, 11:18:54 AM7/25/19
to Jenkins Users
Nope


On Thursday, July 25, 2019 at 9:48:28 AM UTC-4, slide wrote:
Did anything get updated on your Jenkins instance?

On Thu, Jul 25, 2019, 06:27 Jason Flowers <jasonfl...@gmail.com> wrote:
I am getting a build failure in Jenkins with our maven dependencycheckanalyzer. This is a piece of code we haven't changed and was working for a long time and randomly started failing our builds yesterday.. apart from commented out the code to run the dependency check, any idea on how to resolve? 


java.lang.NoSuchMethodError: No such DSL method 'dependencyCheckAnalyzer' found among steps [ansiColor, ... ] 

--
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 jenkins...@googlegroups.com.

Mark Waite

unread,
Jul 25, 2019, 11:24:44 AM7/25/19
to Jenkins Users
I suspect that someone removed the OWASP dependency check plugin from your Jenkins server.  That seems to be the plugin that is providing the `dependencyCheckAnalyzer` keyword for the domain specific language.

Alternately, has the plugin been disabled in your installation?

As another alternative, possibly there is some runtime bug that caused the keyword to be removed from the DSL?  That seems unlikely to me, but I guess it could be possible.

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/9fea5d24-b69e-4f5b-b601-4e19243375b6%40googlegroups.com.


--
Thanks!
Mark Waite

Jason Flowers

unread,
Jul 26, 2019, 11:11:35 AM7/26/19
to Jenkins Users
We cleared the m2e cache and that resolved the problem. Thanks y'all for the other tips. Wanted to post this resolution in case ever helpful for anyone else. 


On Thursday, July 25, 2019 at 11:24:44 AM UTC-4, Mark Waite wrote:
I suspect that someone removed the OWASP dependency check plugin from your Jenkins server.  That seems to be the plugin that is providing the `dependencyCheckAnalyzer` keyword for the domain specific language.

Alternately, has the plugin been disabled in your installation?

As another alternative, possibly there is some runtime bug that caused the keyword to be removed from the DSL?  That seems unlikely to me, but I guess it could be possible.

On Thu, Jul 25, 2019 at 9:18 AM Jason Flowers <jasonfl...@gmail.com> wrote:
Nope

On Thursday, July 25, 2019 at 9:48:28 AM UTC-4, slide wrote:
Did anything get updated on your Jenkins instance?

On Thu, Jul 25, 2019, 06:27 Jason Flowers <jasonfl...@gmail.com> wrote:
I am getting a build failure in Jenkins with our maven dependencycheckanalyzer. This is a piece of code we haven't changed and was working for a long time and randomly started failing our builds yesterday.. apart from commented out the code to run the dependency check, any idea on how to resolve? 


java.lang.NoSuchMethodError: No such DSL method 'dependencyCheckAnalyzer' found among steps [ansiColor, ... ] 

--
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 jenkins...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/df0c1698-f90d-498d-b112-4541874328b5%40googlegroups.com.

--
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 jenkins...@googlegroups.com.


--
Thanks!
Mark Waite
Reply all
Reply to author
Forward
0 new messages