diff options
Diffstat (limited to 'utils/mangle-jobs/build-steps-set.mangle')
-rw-r--r-- | utils/mangle-jobs/build-steps-set.mangle | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/utils/mangle-jobs/build-steps-set.mangle b/utils/mangle-jobs/build-steps-set.mangle deleted file mode 100644 index 16f5ec3..0000000 --- a/utils/mangle-jobs/build-steps-set.mangle +++ /dev/null @@ -1,19 +0,0 @@ -# Set latest build steps config for all jobs, as provided in build.xml file - -from lxml.etree import fromstring - - -builders = open("builders.xml").read() - -def mangle(tree): - tags = tree.xpath("//jenkins.plugins.publish__over__ssh.BapSshPublisherPlugin") - for t in tags: - t.getparent().remove(t) - - # Replace existing <builders> content - node = fromstring(builders) - # Add our complete content after the current <builders> - tag = tree.xpath('/project/builders')[0] - tag.addnext(node) - # And now remove the original <builders> - tag.getparent().remove(tag) |