{"id":6597,"date":"2016-07-06T15:10:17","date_gmt":"2016-07-06T13:10:17","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=6597"},"modified":"2021-09-15T17:14:49","modified_gmt":"2021-09-15T15:14:49","slug":"listing-a-jenkins-ci-folder-recursively","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2016\/07\/06\/listing-a-jenkins-ci-folder-recursively\/","title":{"rendered":"listing a Jenkins CI folder recursively"},"content":{"rendered":"<ul>\n<li><a href=\"https:\/\/github.com\/JochenHayek\/misc\">https:\/\/github.com\/JochenHayek\/misc<\/a>\u00a0\u2013 pls find my script here!<\/li>\n<\/ul>\n<p>First I wrote this as a Shell script \u2026<\/p>\n<ul>\n<li>calling XMLStarlet resp. SaxonHE (for XPath)<\/li>\n<li>and curl (for retrieving the Jenkins details as XML files).<\/li>\n<\/ul>\n<pre>$ \u2026\/jenkins_find_jobs.sh https:\/\/integration.wikimedia.org\/ci\nfolder           \u2026\nfreeStyleProject \u2026\nmatrixProject    \u2026<\/pre>\n<p>The listing is quite\u00a0helpful for documentational purposes.<\/p>\n<p>I was really proud on my little achievement then.<\/p>\n<p>At one stage I wanted to exercise XQuery with SaxonHE a little, so I replaced the XMLStarlet command line with SaxonHE XQuery command lines. And it works quite fine.<\/p>\n<p>Utopia:<\/p>\n<p>Once I know how to retrieve URLs from within XQuery, the Shell script will get replaced with a true XQuery script \u2013 as opposed to single, simple XPath expressions (a rather basic form of XQuery). Then the XQuery approach will outperform the Shell+XMLStarlet approach.\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/github.com\/JochenHayek\/misc\u00a0\u2013 pls find my script here! First I wrote this as a Shell script \u2026 calling XMLStarlet resp. SaxonHE (for XPath) and curl (for retrieving the Jenkins details as XML files). $ \u2026\/jenkins_find_jobs.sh https:\/\/integration.wikimedia.org\/ci folder \u2026 freeStyleProject \u2026 matrixProject \u2026 The listing is quite\u00a0helpful for documentational purposes. I was really proud on my little achievement [&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":true,"_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":[851,732,733],"tags":[1281],"class_list":["post-6597","post","type-post","status-publish","format-standard","hentry","category-xmlstarlet","category-xpath","category-xquery","tag-saxon"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1Ip","jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/6597","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=6597"}],"version-history":[{"count":1,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/6597\/revisions"}],"predecessor-version":[{"id":11880,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/6597\/revisions\/11880"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=6597"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=6597"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=6597"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}