manually created config.xml and plugin version numbers

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

manually created config.xml and plugin version numbers

Adam Levine
I've templated out some jobs, using gradle file copy/token replacement and the cli create-job with my config.xml, and all is working fine.   My question is on pieces that are plugins.  

ie
    <hudson.plugins.heavy__job.HeavyJobProperty plugin="heavy-job@XXXX">
      <weight>1</weight>
    </hudson.plugins.heavy__job.HeavyJobProperty>


I already have a process in place to extract all the current plugins and versions and supply them, ie plugin="heavy-job@${heavy_job_plugin_version}"

When I'm creating the config.xml to pass to the CLI create-job, does it matter if I include the plugin version or not?  I saw on a prior thread that the version number is merely a reference to the plugin version present when the job was created.   I can't see that it's breaking anything if I don't include the version, but I want to make sure I'm not going to shoot myself in the foot.

Any insight is welcome.

Thank you !



--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/161cc74f-c219-47fe-af06-542536880682%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

RE: manually created config.xml and plugin version numbers

Artur Szostak
Sounds like you implementing something similar to Jenkins Job Builder (https://docs.openstack.org/infra/jenkins-job-builder/).
That tool does not add plugin version numbers to the XML and it works. Presumably as long as there is nothing particularly strange going on between plugin upgrades.


From: [hidden email] [[hidden email]] on behalf of Adam Levine [[hidden email]]
Sent: 20 March 2017 20:45
To: Jenkins Users
Subject: manually created config.xml and plugin version numbers

I've templated out some jobs, using gradle file copy/token replacement and the cli create-job with my config.xml, and all is working fine.   My question is on pieces that are plugins.  

ie
    <hudson.plugins.heavy__job.HeavyJobProperty plugin="heavy-job@XXXX">
      <weight>1</weight>
    </hudson.plugins.heavy__job.HeavyJobProperty>


I already have a process in place to extract all the current plugins and versions and supply them, ie plugin="heavy-job@${heavy_job_plugin_version}"

When I'm creating the config.xml to pass to the CLI create-job, does it matter if I include the plugin version or not?  I saw on a prior thread that the version number is merely a reference to the plugin version present when the job was created.   I can't see that it's breaking anything if I don't include the version, but I want to make sure I'm not going to shoot myself in the foot.

Any insight is welcome.

Thank you !



--
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-users+unsubscribe@....
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/161cc74f-c219-47fe-af06-542536880682%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c514d56770fa4afea62e7bee7dcf273d%40partner.eso.org.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: manually created config.xml and plugin version numbers

Adam Levine
Artur:

   Thank you for your response.   Knowing that another project (thanks for the heads up on that one, too!) is working fine in the same manner gives me great comfort I won't be introducing any systemic problems.

  Thank you again!

On Wednesday, March 22, 2017 at 6:33:43 AM UTC-5, Artur Szostak wrote:
Sounds like you implementing something similar to Jenkins Job Builder (<a href="https://www.google.com/url?q=https%3A%2F%2Fdocs.openstack.org%2Finfra%2Fjenkins-job-builder%2F&amp;sa=D&amp;sntz=1&amp;usg=AFQjCNG6uk2foDvEHr4FvDXDypyQhUaxPQ" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdocs.openstack.org%2Finfra%2Fjenkins-job-builder%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG6uk2foDvEHr4FvDXDypyQhUaxPQ&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdocs.openstack.org%2Finfra%2Fjenkins-job-builder%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNG6uk2foDvEHr4FvDXDypyQhUaxPQ&#39;;return true;">https://docs.openstack.org/infra/jenkins-job-builder/).
That tool does not add plugin version numbers to the XML and it works. Presumably as long as there is nothing particularly strange going on between plugin upgrades.


From: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="6sllNuq6CAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com [<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6sllNuq6CAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com] on behalf of Adam Levine [<a href="javascript:" target="_blank" gdf-obfuscated-mailto="6sllNuq6CAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">adam.l...@...]
Sent: 20 March 2017 20:45
To: Jenkins Users
Subject: manually created config.xml and plugin version numbers

I've templated out some jobs, using gradle file copy/token replacement and the cli create-job with my config.xml, and all is working fine.   My question is on pieces that are plugins.  

ie
    <hudson.plugins.heavy__job.HeavyJobProperty plugin="heavy-job@XXXX">
      <weight>1</weight>
    </hudson.plugins.heavy__job.HeavyJobProperty>


I already have a process in place to extract all the current plugins and versions and supply them, ie plugin="heavy-job@${heavy_job_plugin_version}"

When I'm creating the config.xml to pass to the CLI create-job, does it matter if I include the plugin version or not?  I saw on a prior thread that the version number is merely a reference to the plugin version present when the job was created.   I can't see that it's breaking anything if I don't include the version, but I want to make sure I'm not going to shoot myself in the foot.

Any insight is welcome.

Thank you !



--
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 <a href="http://redir.aspx?REF=7jidoDN0MEb6gPXQLiZAkZ53gfFELmBu9Yhh6qejKkq8iNjAFnHUCAFtYWlsdG86amVua2luc2NpLXVzZXJzK3Vuc3Vic2NyaWJlQGdvb2dsZWdyb3Vwcy5jb20." target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fredir.aspx%3FREF%3D7jidoDN0MEb6gPXQLiZAkZ53gfFELmBu9Yhh6qejKkq8iNjAFnHUCAFtYWlsdG86amVua2luc2NpLXVzZXJzK3Vuc3Vic2NyaWJlQGdvb2dsZWdyb3Vwcy5jb20.\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFDKcu4Znh5AnRIF-28wWEGHBofSQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fredir.aspx%3FREF%3D7jidoDN0MEb6gPXQLiZAkZ53gfFELmBu9Yhh6qejKkq8iNjAFnHUCAFtYWlsdG86amVua2luc2NpLXVzZXJzK3Vuc3Vic2NyaWJlQGdvb2dsZWdyb3Vwcy5jb20.\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFDKcu4Znh5AnRIF-28wWEGHBofSQ&#39;;return true;"> jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit <a href="http://redir.aspx?REF=Y2HvJ6uqNLQmK9EA3WnfIpwzrFXoknKMgbO4g3vLwD68iNjAFnHUCAFodHRwczovL2dyb3Vwcy5nb29nbGUuY29tL2QvbXNnaWQvamVua2luc2NpLXVzZXJzLzE2MWNjNzRmLWMyMTktNDdmZS1hZjA2LTU0MjUzNjg4MDY4MiU0MGdvb2dsZWdyb3Vwcy5jb20_dXRtX21lZGl1bT1lbWFpbCZ1dG1fc291cmNlPWZvb3Rlcg.." target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fredir.aspx%3FREF%3DY2HvJ6uqNLQmK9EA3WnfIpwzrFXoknKMgbO4g3vLwD68iNjAFnHUCAFodHRwczovL2dyb3Vwcy5nb29nbGUuY29tL2QvbXNnaWQvamVua2luc2NpLXVzZXJzLzE2MWNjNzRmLWMyMTktNDdmZS1hZjA2LTU0MjUzNjg4MDY4MiU0MGdvb2dsZWdyb3Vwcy5jb20_dXRtX21lZGl1bT1lbWFpbCZ1dG1fc291cmNlPWZvb3Rlcg..\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGjXz7ccjZAwihV3o-I_2c6L8SQ2Q&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fredir.aspx%3FREF%3DY2HvJ6uqNLQmK9EA3WnfIpwzrFXoknKMgbO4g3vLwD68iNjAFnHUCAFodHRwczovL2dyb3Vwcy5nb29nbGUuY29tL2QvbXNnaWQvamVua2luc2NpLXVzZXJzLzE2MWNjNzRmLWMyMTktNDdmZS1hZjA2LTU0MjUzNjg4MDY4MiU0MGdvb2dsZWdyb3Vwcy5jb20_dXRtX21lZGl1bT1lbWFpbCZ1dG1fc291cmNlPWZvb3Rlcg..\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGjXz7ccjZAwihV3o-I_2c6L8SQ2Q&#39;;return true;"> https://groups.google.com/d/msgid/jenkinsci-users/161cc74f-c219-47fe-af06-542536880682%40googlegroups.com.
For more options, visit <a href="http://redir.aspx?REF=nIIoI5avfs2lykk3BQbAILpWGHZvRebgEYtzVqJig3y8iNjAFnHUCAFodHRwczovL2dyb3Vwcy5nb29nbGUuY29tL2Qvb3B0b3V0" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fredir.aspx%3FREF%3DnIIoI5avfs2lykk3BQbAILpWGHZvRebgEYtzVqJig3y8iNjAFnHUCAFodHRwczovL2dyb3Vwcy5nb29nbGUuY29tL2Qvb3B0b3V0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEiabiBzeBJGc7_-dv0Z2dJjzzbKQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fredir.aspx%3FREF%3DnIIoI5avfs2lykk3BQbAILpWGHZvRebgEYtzVqJig3y8iNjAFnHUCAFodHRwczovL2dyb3Vwcy5nb29nbGUuY29tL2Qvb3B0b3V0\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEiabiBzeBJGc7_-dv0Z2dJjzzbKQ&#39;;return true;"> https://groups.google.com/d/optout.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c7cf0abd-c0e0-4d4e-953a-6e31a21b2b9b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.