How to implement a plugin to allow to install it without restarting the master ?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to implement a plugin to allow to install it without restarting the master ?

Arnaud Héritier
Hi team,

  I'm looking for samples/pointers on how implementing a plugin to not have to restart the master when you install it for the 1st time.

  I have some difficulties to understand why I get different behaviors in my tests ( https://issues.jenkins-ci.org/browse/JENKINS-59696 ) and I don't find a lot of resources on this topic.

  [hidden email] figured out that Jenkins Extension have by default the dynamicLoadable attribute set to MAYBE but I don't see a lot of plugin redefining it to YES (and few are configured it to FALSE when they really need to do something at the startup time - not my usecase).

  We found some problems related to this like https://issues.jenkins-ci.org/browse/JENKINS-28983 https://issues.jenkins-ci.org/browse/JENKINS-52072 fixed by Stephen a year ago in the core but I'm using a more recent version in my tests and it shouldn't be impacted by such bug.

  Before testing more, I would like to understand the theoretical  behavior that Jenkins should follow.

Thanks

--
-----
Arnaud Héritier
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CAFNCU--f%3DXyqa-tWGy9bh5AXHxq-eqVnGj8Z-qyAWG3Un7Zp_A%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to implement a plugin to allow to install it without restarting the master ?

James Nord-3
Exactly as you said.

change  dynamicallyLoadable to YES :)

not many people do this as not many people care ;-(

But maybe will try and load the extension - you just get a warning after installing that you *may* need to restart (IIRC)

/James

On Wednesday, October 9, 2019 at 11:49:20 PM UTC+1, Arnaud Héritier wrote:
Hi team,

  I'm looking for samples/pointers on how implementing a plugin to not have to restart the master when you install it for the 1st time.

  I have some difficulties to understand why I get different behaviors in my tests ( <a href="https://issues.jenkins-ci.org/browse/JENKINS-59696" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-59696\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETP6ByP_N_bMEOZrpIbJat4_LqXQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-59696\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETP6ByP_N_bMEOZrpIbJat4_LqXQ&#39;;return true;">https://issues.jenkins-ci.org/browse/JENKINS-59696 ) and I don't find a lot of resources on this topic.

  <a href="javascript:" target="_blank" gdf-obfuscated-mailto="sroVTCWOCwAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">...@Pierre Beitz figured out that Jenkins Extension have by default the dynamicLoadable attribute set to MAYBE but I don't see a lot of plugin redefining it to YES (and few are configured it to FALSE when they really need to do something at the startup time - not my usecase).

  We found some problems related to this like <a href="https://issues.jenkins-ci.org/browse/JENKINS-28983" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-28983\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEsiLiLEs0IZvuvZW_uu2tFqIXPkQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-28983\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEsiLiLEs0IZvuvZW_uu2tFqIXPkQ&#39;;return true;">https://issues.jenkins-ci.org/browse/JENKINS-28983 <a href="https://issues.jenkins-ci.org/browse/JENKINS-52072" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-52072\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4J_ddMyuexvWHHicdkhxJBeBM6w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-52072\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4J_ddMyuexvWHHicdkhxJBeBM6w&#39;;return true;">https://issues.jenkins-ci.org/browse/JENKINS-52072 fixed by Stephen a year ago in the core but I'm using a more recent version in my tests and it shouldn't be impacted by such bug.

  Before testing more, I would like to understand the theoretical  behavior that Jenkins should follow.

Thanks

--
-----
Arnaud Héritier
<a href="http://aheritier.net" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Faheritier.net\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGuMxxk3CQaqLzMBmrcPYvj1y8CyA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Faheritier.net\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGuMxxk3CQaqLzMBmrcPYvj1y8CyA&#39;;return true;">http://aheritier.net
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/c0ffd101-7b21-4ccf-9629-6e994e1b94c2%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: How to implement a plugin to allow to install it without restarting the master ?

James Nord-3


On Monday, October 14, 2019 at 7:43:25 PM UTC+1, James Nord wrote:
Exactly as you said.

change  dynamicallyLoadable to YES :)

not many people do this as not many people care ;-(

But maybe will try and load the extension - you just get a warning after installing that you *may* need to restart (IIRC)

/James

On Wednesday, October 9, 2019 at 11:49:20 PM UTC+1, Arnaud Héritier wrote:
Hi team,

  I'm looking for samples/pointers on how implementing a plugin to not have to restart the master when you install it for the 1st time.

  I have some difficulties to understand why I get different behaviors in my tests ( <a href="https://issues.jenkins-ci.org/browse/JENKINS-59696" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-59696\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETP6ByP_N_bMEOZrpIbJat4_LqXQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-59696\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNETP6ByP_N_bMEOZrpIbJat4_LqXQ&#39;;return true;">https://issues.jenkins-ci.org/browse/JENKINS-59696 ) and I don't find a lot of resources on this topic.

  ...@Pierre Beitz figured out that Jenkins Extension have by default the dynamicLoadable attribute set to MAYBE but I don't see a lot of plugin redefining it to YES (and few are configured it to FALSE when they really need to do something at the startup time - not my usecase).

  We found some problems related to this like <a href="https://issues.jenkins-ci.org/browse/JENKINS-28983" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-28983\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEsiLiLEs0IZvuvZW_uu2tFqIXPkQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-28983\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEsiLiLEs0IZvuvZW_uu2tFqIXPkQ&#39;;return true;">https://issues.jenkins-ci.org/browse/JENKINS-28983 <a href="https://issues.jenkins-ci.org/browse/JENKINS-52072" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-52072\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4J_ddMyuexvWHHicdkhxJBeBM6w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fissues.jenkins-ci.org%2Fbrowse%2FJENKINS-52072\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNF4J_ddMyuexvWHHicdkhxJBeBM6w&#39;;return true;">https://issues.jenkins-ci.org/browse/JENKINS-52072 fixed by Stephen a year ago in the core but I'm using a more recent version in my tests and it shouldn't be impacted by such bug.

  Before testing more, I would like to understand the theoretical  behavior that Jenkins should follow.

Thanks

--
-----
Arnaud Héritier
<a href="http://aheritier.net" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Faheritier.net\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGuMxxk3CQaqLzMBmrcPYvj1y8CyA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Faheritier.net\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGuMxxk3CQaqLzMBmrcPYvj1y8CyA&#39;;return true;">http://aheritier.net
Mail/GTalk: aheritier AT gmail DOT com
Twitter/Skype : aheritier

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/59e7c7b7-f70f-4815-b767-fc3fdb22c448%40googlegroups.com.