aboutsummaryrefslogtreecommitdiff
path: root/utils/mangle-jobs
diff options
context:
space:
mode:
authorPaul Sokolovsky <paul.sokolovsky@linaro.org>2012-10-10 14:42:05 +0300
committerPaul Sokolovsky <paul.sokolovsky@linaro.org>2012-10-10 14:42:05 +0300
commit974c80156f51be1649a16f1c828a4b9f1e18ed73 (patch)
tree45e5eb3f2b923bc4812363b2af7484f7b1de8857 /utils/mangle-jobs
parent6e1e7a41b5dd372d3429fee7d1f58cc9e11a5eed (diff)
Add 2nd variant of script for ShellWithStatus plugin.
Diffstat (limited to 'utils/mangle-jobs')
-rw-r--r--utils/mangle-jobs/job-shell-commands-set2.mangle11
1 files changed, 11 insertions, 0 deletions
diff --git a/utils/mangle-jobs/job-shell-commands-set2.mangle b/utils/mangle-jobs/job-shell-commands-set2.mangle
new file mode 100644
index 0000000..30b93e9
--- /dev/null
+++ b/utils/mangle-jobs/job-shell-commands-set2.mangle
@@ -0,0 +1,11 @@
+# Update initial startup shell commands for a job
+
+new_cmd = '''\
+rm -rf build-tools
+bzr get http://bazaar.launchpad.net/~linaro-infrastructure/linaro-android-build-tools/trunk build-tools
+sudo -H -E build-tools/node/build us-east-1.ec2-git-mirror.linaro.org "$CONFIG"
+'''
+
+def mangle(tree):
+ tags = tree.xpath('/project/builders/hudson.tasks.ShellWithStatus/command')
+ tags[0].text = new_cmd