How to upgrade Matrix (matrix-auth) and it s dependency plugin in pom.xml without changing the parent Jenkins version?

162 views
Skip to first unread message

Vinodhini Vijay

unread,
Jun 10, 2015, 7:30:57 AM6/10/15
to jenkin...@googlegroups.com


Hello All,

We are using Jenkins 1.580.3 LTS version for our plugin development. While starting Jenkins via mvn hpi:run, we are getting the below error:

Jun 10, 2015 4:30:11 PM jenkins.InitReactorRunner$1 onAttained

INFO: Started initialization

Jun 10, 2015 4:30:32 PM hudson.PluginManager$1$3$2$1 reactOnCycle

SEVERE: found cycle in plugin dependencies: (root=Plugin:matrix-auth, deactivating all involved) Plugin:matrix-auth -> Plugin:windows-slaves -> Plugin:antisamy-markup-formatter -> Plugin:matrix-project -> Plugin:script-security -> Plugin:matrix-auth

Jun 10, 2015 4:30:32 PM hudson.PluginManager$1$3$2$1 reactOnCycle

SEVERE: found cycle in plugin dependencies: (root=Plugin:windows-slaves, deactivating all involved) Plugin:windows-slaves -> Plugin:antisamy-markup-formatter -> Plugin:matrix-project -> Plugin:script-security -> Plugin:matrix-auth -> Plugin:windows-slaves

Jun 10, 2015 4:30:32 PM hudson.PluginManager$1$3$2$1 reactOnCycle

SEVERE: found cycle in plugin dependencies: (root=Plugin:antisamy-markup-formatter, deactivating all involved) Plugin:antisamy-markup-formatter -> Plugin:matrix-project -> Plugin:script-security -> Plugin:matrix-auth -> Plugin:windows-slaves -> Plugin:antisamy-markup-formatter

Jun 10, 2015 4:30:32 PM hudson.PluginManager$1$3$2$1 reactOnCycle

SEVERE: found cycle in plugin dependencies: (root=Plugin:matrix-project, deactivating all involved) Plugin:matrix-project -> Plugin:script-security -> Plugin:matrix-auth -> Plugin:windows-slaves -> Plugin:antisamy-markup-formatter -> Plugin:matrix-project



This error message doesn't occur from 1.596.1 LTS version.

If we don't want to upgrade to Jenkins LTS 1.596.1, Could we upgrade the matrix-auth plugin & dependencies alone in my pom.xml without any issues?

As we couldn't find matrix-auth and dependencies in Effective pom.xml and pom.xml, May I know how to upgrade Matrix (matrix-auth) and it's dependency plugin in pom.xml without changing the parent Jenkins version?

Thanks!

Daniel Beck

unread,
Jun 10, 2015, 7:36:49 AM6/10/15
to jenkin...@googlegroups.com
Is your plugin depending on any of the plugins mentioned in the error messages, and if so, which versions?
> --
> You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/a71abb21-6293-434d-b685-c480434de986%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Vinodhini Vijay

unread,
Jun 10, 2015, 8:38:50 AM6/10/15
to jenkin...@googlegroups.com
Hello Mr.Beck,

Our plugin doesn't depend on any of the plugins (matrix-auth,windows-slaves,antisamy-markup-formatter,matrix-project,script-security).

Our concern is that if we use this LTS version: 1.580.1/2/3 for our plugin development,and also in testservers, we might not be able to use some good features of Jenkins like Matrix Project, etc.. as it might be disabled.

Any advice (or corrections in our understanding ) would be really helpful to us.

Thanks!

Daniel Beck

unread,
Jun 10, 2015, 9:00:55 AM6/10/15
to jenkin...@googlegroups.com

On 10.06.2015, at 14:38, Vinodhini Vijay <vinodhi...@gmail.com> wrote:

> Our concern is that if we use this LTS version: 1.580.1/2/3 for our plugin development,and also in testservers, we might not be able to use some good features of Jenkins like Matrix Project, etc.. as it might be disabled.
>
> Any advice (or corrections in our understanding ) would be really helpful to us.

The Jenkins version you're building against determines the Jenkins feature set available to your plugin and is the minimum version required to use the plugin. Users are always free to use a newer version of Jenkins than you were building against.

Related: https://wiki.jenkins-ci.org/display/JENKINS/Choosing+Jenkins+version+to+build+against

That said, I cannot reproduce the problem. A new plugin with 1.580.3 parent builds and runs just fine. Make sure you don't have incompatible versions of these plugins manually installed in your work directory.

Jesse Glick

unread,
Jun 10, 2015, 6:10:12 PM6/10/15
to Jenkins Dev
On Wed, Jun 10, 2015 at 9:00 AM, Daniel Beck <m...@beckweb.net> wrote:
> Make sure you don't have incompatible versions of these plugins manually installed in your work directory.

To be sure:

rm -rf target work

Possibly you installed matrix-project 1.4.1 in a previous session and
forgot about it. 1.580.3 cannot handle this update.

Vinodhini Vijay

unread,
Jun 11, 2015, 1:52:00 AM6/11/15
to jenkin...@googlegroups.com
Hello All,

Thank you very much!!

After removing the target and work directories and re-runing Jenkins, the error doesn't appear.

Thank you again!!
Reply all
Reply to author
Forward
0 new messages