aboutsummaryrefslogtreecommitdiff
path: root/utils/mangle-jobs/ci-tools-checkout.mangle
blob: 46b9b5f268ed0445855916cf4c62f95cd6f1c9cb (plain)
1
2
3
4
5
6
7
8
9
# Update initial startup shell commands for a job

old_cmd = 'bzr branch lp:~linaro-infrastructure/linaro-ci/lci-build-tools'
new_cmd = 'bzr branch lp:linaro-ci lci-build-tools'

def mangle(tree):
    tags = tree.xpath('/project/builders/hudson.tasks.Shell/command')
    if tags:
        tags[0].text = tags[0].text.replace(old_cmd, new_cmd)