aboutsummaryrefslogtreecommitdiff
path: root/utils/mangle-jobs/shell-status-set.mangle
blob: aab05e636e209688570ab27590e6cf2048faa716 (plain)
1
2
3
4
5
6
7
8
9
10
11
# Make 1st of 2 shell scripts we have run using shell-status plugin

#from lxml.etree import Element
from lxml.etree import fromstring

def mangle(tree):
    tags = tree.xpath('//hudson.tasks.Shell')
    if len(tags) != 2:
        # Already applied
        return
    tags[0].tag = "hudson.plugins.shell.ShellWithStatus"