{"id":6606,"date":"2016-07-09T13:53:29","date_gmt":"2016-07-09T11:53:29","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=6606"},"modified":"2016-07-09T13:53:29","modified_gmt":"2016-07-09T11:53:29","slug":"jenkins-ci-jobs-described-in-yaml-or-json","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2016\/07\/09\/jenkins-ci-jobs-described-in-yaml-or-json\/","title":{"rendered":"Jenkins CI jobs described in YAML \u2013 &#8220;Jenkins Job Wrecker&#8221; and &#8220;Jenkins Job Builder&#8221;"},"content":{"rendered":"<ul>\n<li><a href=\"https:\/\/github.com\/openstack-infra\/jenkins-job-builder\">https:\/\/github.com\/openstack-infra\/jenkins-job-builder<\/a><\/li>\n<li><a href=\"http:\/\/docs.openstack.org\/infra\/jenkins-job-builder\/\">http:\/\/docs.openstack.org\/infra\/jenkins-job-builder\/<\/a><\/li>\n<li><a href=\"http:\/\/docs.openstack.org\/infra\/jenkins-job-builder\/definition.html\">http:\/\/docs.openstack.org\/infra\/jenkins-job-builder\/definition.html<\/a><\/li>\n<li><a href=\"http:\/\/docs.openstack.org\/infra\/jenkins-job-builder\/definition.html#module-jenkins_jobs.local_yaml\">http:\/\/docs.openstack.org\/infra\/jenkins-job-builder\/definition.html#module-jenkins_jobs.local_yaml<\/a>\u00a0: <em>include<\/em>, <em>include-raw<\/em>, <em>include-raw-escape<\/em> \u2013 keeping\u00a0building blocks in separate files \u2013 good for dealing with Shell scripts etc as build steps<\/li>\n<li><a href=\"http:\/\/docs.openstack.org\/infra\/jenkins-job-builder\/quick-start.html\">http:\/\/docs.openstack.org\/infra\/jenkins-job-builder\/quick-start.html<\/a><\/li>\n<li><a href=\"http:\/\/docs.openstack.org\/infra\/jenkins-job-builder\/execution.html\">http:\/\/docs.openstack.org\/infra\/jenkins-job-builder\/execution.html<\/a><\/li>\n<li><a href=\"https:\/\/www.mediawiki.org\/wiki\/Continuous_integration\/Jenkins_job_builder\">https:\/\/www.mediawiki.org\/wiki\/Continuous_integration\/Jenkins_job_builder<\/a>\u00a0(JJB)<\/li>\n<li><a href=\"https:\/\/www.cloudbees.com\/jenkins\/juc-2015\/presentations\/JUC-2015-USEast-Scaling-Your-Jenkins-Do.pdf\">https:\/\/www.cloudbees.com\/jenkins\/juc-2015\/presentations\/JUC-2015-USEast-Scaling-Your-Jenkins-Do.pdf<\/a><\/li>\n<\/ul>\n<p>And this software lets you extract Jenkins jobs to YAML:<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/ktdreyer\/jenkins-job-wrecker\">https:\/\/github.com\/ktdreyer\/jenkins-job-wrecker<\/a>\u00a0(JJW)<\/li>\n<\/ul>\n<p>I don&#8217;t know, how well the two (&#8220;builder&#8221; and &#8220;wrecker&#8221;) work together \u2013 h<span style=\"line-height: 1.6\">ow does the &#8220;wrecker&#8221; deal with Shell\/Batch\/\u2026 build steps?<\/span><\/p>\n<p>Looks to me like the JJW is only python-2.7 compatible. And after running &#8220;pip install \u2026&#8221; I don&#8217;t get it to work.<\/p>\n<p>My own &#8220;build step extractor&#8221; targets only exactly extraction of the named build steps. And I don&#8217;t intend to support the other direction (i.e. the upload). You can always upload and past changed Shell script build steps on your own (for the time being).\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/github.com\/openstack-infra\/jenkins-job-builder http:\/\/docs.openstack.org\/infra\/jenkins-job-builder\/ http:\/\/docs.openstack.org\/infra\/jenkins-job-builder\/definition.html http:\/\/docs.openstack.org\/infra\/jenkins-job-builder\/definition.html#module-jenkins_jobs.local_yaml\u00a0: include, include-raw, include-raw-escape \u2013 keeping\u00a0building blocks in separate files \u2013 good for dealing with Shell scripts etc as build steps http:\/\/docs.openstack.org\/infra\/jenkins-job-builder\/quick-start.html http:\/\/docs.openstack.org\/infra\/jenkins-job-builder\/execution.html https:\/\/www.mediawiki.org\/wiki\/Continuous_integration\/Jenkins_job_builder\u00a0(JJB) https:\/\/www.cloudbees.com\/jenkins\/juc-2015\/presentations\/JUC-2015-USEast-Scaling-Your-Jenkins-Do.pdf And this software lets you extract Jenkins jobs to YAML: https:\/\/github.com\/ktdreyer\/jenkins-job-wrecker\u00a0(JJW) I don&#8217;t know, how well the two (&#8220;builder&#8221; and &#8220;wrecker&#8221;) work together \u2013 how does the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-6606","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1Iy","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/6606","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=6606"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/6606\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=6606"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=6606"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=6606"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}