{"id":8761,"date":"2017-08-06T10:35:18","date_gmt":"2017-08-06T08:35:18","guid":{"rendered":"http:\/\/blog.wenzlaff.de\/?p=8761"},"modified":"2021-11-22T16:35:34","modified_gmt":"2021-11-22T15:35:34","slug":"jenkins-syntax-generator-fuer-pipelines-nicht-nur-fuer-raspberry-pis","status":"publish","type":"post","link":"http:\/\/blog.wenzlaff.de\/?p=8761","title":{"rendered":"Jenkins Syntax Generator f\u00fcr Pipelines nicht nur f\u00fcr Raspberry Pi&#8217;s"},"content":{"rendered":"<p>Die neuen 2.x Versionen von Jenkins haben einen guten Syntax Generator. So braucht man sich die Syntax der Befehle nicht zu merken. Man klickt einfach auf &#8222;Pipeline Syntax&#8220;:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.19.36.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.19.36.png\" alt=\"\" width=\"1793\" height=\"724\" class=\"aligncenter size-full wp-image-8762\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.19.36.png 1793w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.19.36-300x121.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.19.36-768x310.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.19.36-1024x413.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Und schon kann man in der Combobox einen Befehl aussuchen f\u00fcr den man ein Snippet generieren m\u00f6chte.<!--more--><\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.21.37.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.21.37.png\" alt=\"\" width=\"1203\" height=\"846\" class=\"aligncenter size-full wp-image-8763\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.21.37.png 1203w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.21.37-300x211.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.21.37-768x540.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.21.37-1024x720.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Hier mal ein Beispiel f\u00fcr das versenden von E-Mails:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.23.23.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.23.23.png\" alt=\"\" width=\"1424\" height=\"1035\" class=\"aligncenter size-full wp-image-8764\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.23.23.png 1424w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.23.23-300x218.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.23.23-768x558.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.23.23-1024x744.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Es brauchen nur die Felder ausgef\u00fcllt werden die man ben\u00f6tigt. Auch kann man noch weitere Optionen unter &#8222;Erweiterte&#8230;&#8220; Eigenschaften einstellen. Zum Schlu\u00df klickt man auf &#8222;Generate Pipeline Script&#8220; und schon wird unten in dem Ausgabetextfeld das Snippet generiert. Das kann dann per copy and paste in das Groovy Script f\u00fcr die Pipeline eingetragen werden.<\/p>\n<p>Braucht man weitere Hilfe zu den Feldern, gibt es immer noch die blauen &#8222;?&#8220; Button:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.30.44.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.30.44.png\" alt=\"\" width=\"1503\" height=\"1148\" class=\"aligncenter size-full wp-image-8765\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.30.44.png 1503w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.30.44-300x229.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.30.44-768x587.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2017\/08\/Bildschirmfoto-2017-08-06-um-10.30.44-1024x782.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Was will man <a href=\"https:\/\/www.jenkins.io\/doc\/pipeline\/steps\/\" target=\"_blank\" rel=\"noopener noreferrer\">mehr<\/a>?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Die neuen 2.x Versionen von Jenkins haben einen guten Syntax Generator. So braucht man sich die Syntax der Befehle nicht zu merken. Man klickt einfach auf &#8222;Pipeline Syntax&#8220;: Und schon kann man in der Combobox einen Befehl aussuchen f\u00fcr den man ein Snippet generieren m\u00f6chte.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[220,2983,808,79,1023],"tags":[2984,1486,2980,231,2971],"class_list":["post-8761","post","type-post","status-publish","format-standard","hentry","category-anleitung","category-jenkins","category-linux-2","category-programmierung","category-raspberry-pi","tag-code-generator","tag-generator","tag-groovy","tag-jenkins","tag-jenkins-2"],"_links":{"self":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/8761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8761"}],"version-history":[{"count":0,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/8761\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8761"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}