I'm missing something very basic. I have Jenkins 1.607 and recently installed Template Project Plugin 1.5.1 but don't see a way to create templates. This is what I see, when I select New Job:
There is Workflow Template above, but no Project Template. I'm not sure what I should be looking for...
Searching online I found the following (http://mark.gg/2013/05/03/jenkins-and-templates/):
"To use the template plugin, you create a job that will have modules - source code management (SCM), builders, publishers - that will be used by other projects."
However, following instructions from the above page, Jenkins creates a regular job - I don't see a way to specify modules. Here is the SCM section in my job that should become a template:
New Edit: ==>> I have several jobs with SCM section defined. Below is a newly created, Freestyle job where I want to use the SCM from an already defined job, but there is no such choice:
For the record, here is a snapshot of installed template plugins:
Appreciate any pointers on how to "create a job that will have modules".
Edit: upgraded Jenkins to the latest 1.631 - same problem.
The template project is a classic Jenkins job. In this job, please define all the module you want to use in clone jobs (SCM, build, post build, ...):
Next, create a new job and select the template modules:
Does it solve your problem? :)
I installed Jenkins 1.638 and ran into the same problem using an SCM template from an already defined job because it didn't show up in the option list. Digging deeper the "System Log" in the "Manage Jenkins" section had some more information as to why.
Nov 13, 2015 3:22:53 PM INFO jenkins.InitReactorRunner$1 onAttained
Augmented all extensions
Nov 13, 2015 3:22:58 PM WARNING hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error
Failed to instantiate Key[type=hudson.plugins.templateproject.ProxySCM$DescriptorImpl, annotation=[none]]; skipping this component
com.google.inject.ProvisionException: Guice provision errors:
1) Error injecting constructor, java.lang.NoClassDefFoundError: org/jenkinsci/plugins/multiplescms/MultiSCMRevisionState
at hudson.plugins.templateproject.ProxySCM$DescriptorImpl.<init>(ProxySCM.java:112)
Turns out there is a dependency on the plugin "Multiple SCMs Plugin". Install that plugin and the option shows up correctly in the Jenkins job configuration using the version 1.5.1 of the Template Project plugin.
SCM Options Before installing the Multiple SCM Plugin
SCM Options After installing the Multiple SCM Plugin
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With