{"id":487,"date":"2016-08-17T16:41:11","date_gmt":"2016-08-17T16:41:11","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2016\/08\/17\/generate-jenkins-job-configuration-automatically\/"},"modified":"2021-11-19T06:11:59","modified_gmt":"2021-11-19T06:11:59","slug":"generate-jenkins-job-configuration-automatically","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/generate-jenkins-job-configuration-automatically\/","title":{"rendered":"Generate Jenkins Job Configuration Automatically | Jenkins Tutorials"},"content":{"rendered":"<div><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2944 aligncenter\" src=\"http:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2016\/08\/generate-jenkins-job-config.png\" alt=\"generate-jenkins-job-configuration-automatically\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2016\/08\/generate-jenkins-job-config.png 600w, https:\/\/www.devopsschool.com\/blog\/wp-content\/uploads\/2016\/08\/generate-jenkins-job-config-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/div>\n<div><\/div>\n<div><strong>Generate Jenkins Job Configuration Automatically?<\/strong><\/div>\n<div><\/div>\n<div><strong>Job DSL Plugin<\/strong><\/div>\n<div>The job-dsl-plugin allows the programmatic creation of projects using a DSL. Pushing job creation into a script allows you to automate and standardize your Jenkins installation, unlike anything possible before.<\/div>\n<div>More &#8211;<\/div>\n<div><a href=\"https:\/\/wiki.jenkins-ci.org\/display\/JENKINS\/Job+DSL+Plugin\" target=\"_blank\" rel=\"noopener\">https:\/\/wiki.jenkins-ci.org\/display\/JENKINS\/Job+DSL+Plugin<\/a><\/div>\n<div><a href=\"https:\/\/github.com\/jenkinsci\/job-dsl-plugin\/wiki\/Tutorial---Using-the-Jenkins-Job-DSL\" target=\"_blank\" rel=\"noopener\">https:\/\/github.com\/jenkinsci\/job-dsl-plugin\/wiki\/Tutorial&#8212;Using-the-Jenkins-Job-DSL<\/a><\/div>\n<div><\/div>\n<div><strong>Multi-Branch Project Plugin<\/strong><\/div>\n<div>This plugin adds additional project types that create sub-projects for each branch using a shared configuration.<\/div>\n<div>More &#8211; <a href=\"https:\/\/wiki.jenkins-ci.org\/display\/JENKINS\/Multi-Branch+Project+Plugin\" target=\"_blank\" rel=\"noopener\">https:\/\/wiki.jenkins-ci.org\/display\/JENKINS\/Multi-Branch+Project+Plugin<\/a><\/div>\n<div><\/div>\n<div><strong>Job Generator Plugin<\/strong><\/div>\n<div>This plugin adds a new job type &#8220;Job Generator&#8221; which can generate new projects when executed.<\/div>\n<div>More &#8211; <a href=\"https:\/\/wiki.jenkins-ci.org\/display\/JENKINS\/Job+Generator+Plugin\" target=\"_blank\" rel=\"noopener\">https:\/\/wiki.jenkins-ci.org\/display\/JENKINS\/Job+Generator+Plugin<\/a><\/div>\n<div><\/div>\n<div><strong>Jenkins Job Builder<\/strong><\/div>\n<div>Jenkins Job Builder takes simple descriptions of Jenkins jobs in YAML or JSON format and uses them to configure Jenkins. You can keep your job descriptions in human readable text format in a version control system to make changes and auditing easier. It also has a flexible template system, so creating many similarly configured jobs is easy.<\/div>\n<div><\/div>\n<div>More &#8211;<\/div>\n<div><a href=\"http:\/\/docs.openstack.org\/infra\/jenkins-job-builder\/\" target=\"_blank\" rel=\"noopener\">http:\/\/docs.openstack.org\/infra\/jenkins-job-builder\/<\/a><\/div>\n<div><a href=\"https:\/\/www.slalom.com\/thinking\/automatically-generating-jenkins-jobs\" target=\"_blank\" rel=\"noopener\">https:\/\/www.slalom.com\/thinking\/automatically-generating-jenkins-jobs<\/a><\/div>\n<div><\/div>\n<div><strong>Generating New Jenkins Jobs From Templates and Parameterised Builds<\/strong><\/div>\n<div>We use Jenkins to run our builds in a continuously. This is great, but you still have to do a fair bit of configuration each time you set up a new job. If you have a fairly static set of builds this isn\u2019t a problem. We found ourselves in a situation where we had to create a lot of very similar builds quite regularly. Creating a new job by hand and manually changing the 10 or so tiny little things in each build is a pain and error prone. So\u2026automate that too!<\/div>\n<div><\/div>\n<div>More<\/div>\n<div><a href=\"http:\/\/www.blackpepper.co.uk\/generating-new-jenkins-jobs-from-templates-and-parameterised-builds\/\" target=\"_blank\" rel=\"noopener\">http:\/\/www.blackpepper.co.uk\/generating-new-jenkins-jobs-from-templates-and-parameterised-builds\/<\/a><\/div>\n\n<div class=\"epyt-gallery\" data-currpage=\"1\" id=\"epyt_gallery_35129\"><iframe loading=\"lazy\"  id=\"_ytid_16370\"  width=\"760\" height=\"427\"  data-origwidth=\"760\" data-origheight=\"427\" src=\"https:\/\/www.youtube.com\/embed\/?enablejsapi=1&#038;autoplay=0&#038;cc_load_policy=0&#038;cc_lang_pref=&#038;iv_load_policy=1&#038;loop=0&#038;rel=1&#038;fs=1&#038;playsinline=0&#038;autohide=2&#038;theme=dark&#038;color=red&#038;controls=1&#038;disablekb=0&#038;\" class=\"__youtube_prefs__  no-lazyload\" title=\"YouTube player\"  data-epytgalleryid=\"epyt_gallery_35129\"  allow=\"fullscreen; accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen data-no-lazy=\"1\" data-skipgform_ajax_framebjll=\"\"><\/iframe><div class=\"epyt-gallery-list\"><div>Sorry, there was a YouTube error.<\/div><\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Generate Jenkins Job Configuration Automatically? Job DSL Plugin The job-dsl-plugin allows the programmatic creation of projects using a DSL. Pushing job creation into a script allows you to automate and&#8230; <\/p>\n","protected":false},"author":1,"featured_media":2944,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[42],"tags":[795,282,793,145,797,794,798,796],"class_list":["post-487","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jenkins","tag-automatically","tag-configuration","tag-generate","tag-jenkins","tag-jenkins-job-builder","tag-jenkins-job-configuration","tag-jenkins-tutorials","tag-job-generator"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=487"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/487\/revisions"}],"predecessor-version":[{"id":25777,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/487\/revisions\/25777"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media\/2944"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}