{"id":6061,"date":"2016-01-20T11:52:18","date_gmt":"2016-01-20T10:52:18","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=6061"},"modified":"2016-01-20T11:52:18","modified_gmt":"2016-01-20T10:52:18","slug":"the-jenkins-automation-server-and-shell-build-steps-started-using-xe","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2016\/01\/20\/the-jenkins-automation-server-and-shell-build-steps-started-using-xe\/","title":{"rendered":"the Jenkins automation server and shell build steps started using &#8220;-xe&#8221;"},"content":{"rendered":"<ul>\n<li><a href=\"http:\/\/jenkins-ci.org\">http:\/\/jenkins-ci.org<\/a><\/li>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/Jenkins_(software)\">https:\/\/en.wikipedia.org\/wiki\/Jenkins_(software)<\/a><\/li>\n<\/ul>\n<p>Q: Why &#8220;<em>automation server<\/em>&#8221; and not &#8220;<em>continuous integration &#8230;<\/em>&#8220;?<br \/>\nA: Because Jenkins&#8217; business is no longer just &#8220;continuous integration&#8221; but the very wide field of automation in general. Whatever you started before through a crontab entry, is so much more comfortable to start through a Jenkins job. Log files are being preserved (and purged automatically, if you want so), artefact as well, &#8230;<\/p>\n<p>Jenkins starts all shell build steps using &#8220;-xe&#8221;, that&#8217;s like &#8220;set -x&#8221; and &#8220;set -e&#8221; within a shell script. &#8220;-xe&#8221; gets passed on to shell scripts called from within a shell build step &#8212; but you usually don&#8217;t want to show its internals and get the commands within your shell script displayed command by command &#8212; and there is a way to revert this effect: insert &#8220;<em>\/bin\/bash +xe<\/em>&#8221; before the call to the shell script!<\/p>\n<p>&nbsp;\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/jenkins-ci.org https:\/\/en.wikipedia.org\/wiki\/Jenkins_(software) Q: Why &#8220;automation server&#8221; and not &#8220;continuous integration &#8230;&#8220;? A: Because Jenkins&#8217; business is no longer just &#8220;continuous integration&#8221; but the very wide field of automation in general. Whatever you started before through a crontab entry, is so much more comfortable to start through a Jenkins job. Log files are being preserved (and [&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_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},"jetpack_post_was_ever_published":false,"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-6061","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-1zL","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/6061","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=6061"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/6061\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=6061"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=6061"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=6061"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}