Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Template plugin for Jenkins

Tags:

Is there any plugin available in Jenkins which allows you to reuse shared configuration across the jobs.. e.g I can define a template for Continuous Integration and other template for Running Tests and create multiple jobs from these template for different branches.

I know template plugin is available in Enterprise Jenkins but is there something similar available for jenkins open source?

I am looking for something similar to here

like image 696
Saurabh Agrawal Avatar asked Aug 10 '12 11:08

Saurabh Agrawal


People also ask

What is Jenkins template?

The Jenkins Templating Engine allows pipeline developers to create common workflows (called pipeline templates) and share them across teams. These workflows define the business logic of the pipeline in a tool-agnostic way by calling generic functions (called steps).

How do I send email after build in Jenkins?

To send email, the plugin needs the smtp configured. Go to Manage Jenkins > Configure System > search for “Extended E-mail Notification”. Configure the smtp. Example: My configuration with gmail smtp.


2 Answers

I have found ez-templates plugin to behave well for Jobs templating. It is very young project and you will have to build it by yourself (which is very simple, see below), but still it is much more powerful than Template Project Plugin as it supports any types of jobs.

How to build:

  1. Install Maven 3
  2. Clone/download the ez-templates git repo
  3. Run 'mvn install' from the ez-templates checkout folder
  4. Once build is ready go to the 'target' folder and find the ez-templates.hpi which is self contained plugin binary.
like image 115
Anton Matosov Avatar answered Oct 12 '22 23:10

Anton Matosov


How about the Template Project Plugin?

like image 21
Christopher Orr Avatar answered Oct 12 '22 23:10

Christopher Orr