I am trying to build a new pipeline and in that I need to executed a gradle 
clean check but I keep running in to a plugin error.
My gradle code in the Jenkinsfile:

/// This stage will run the gradle build
stage 'PR Test'
sh 'gradle clean check'




There error is:

* What went wrong:
A problem occurred evaluating root project 'component build'.
> Could not find method plugins() for arguments


It is interesting to note that when I run this using a freestyle build it works 
perfect.

Any help is greatly appreciated.



-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/69582c84-20be-4c3e-bca1-fb138b460028%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to