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 !