aboutsummaryrefslogtreecommitdiff
path: root/utils/mangle-jobs/build-timeout-set.mangle
blob: 9c4b113d1fccbb9ad05dc30bcd4fcd08f7a1e5b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Update default build timeout value to new default.
# Don't touch custom timeout times

OLD_DEFAULT = "275"
NEW_DEFAULT = "375"


def mangle(tree):
    tags = tree.xpath("//hudson.plugins.build__timeout.BuildTimeoutWrapper/timeoutMinutes")
    if not tags:
        return False
    tag = tags[0]
    if tag.text != OLD_DEFAULT:
        return False
    tag.text = NEW_DEFAULT