Merge lp:~pfalcon/linaro-android-build-tools/readd-artifacts into lp:linaro-android-build-tools

Proposed by Paul Sokolovsky
Status: Merged
Merged at revision: 492
Proposed branch: lp:~pfalcon/linaro-android-build-tools/readd-artifacts
Merge into: lp:linaro-android-build-tools
Diff against target: 23 lines (+19/-0)
1 file modified
utils/mangle-jobs/artifacts-add.mangle (+19/-0)
To merge this branch: bzr merge lp:~pfalcon/linaro-android-build-tools/readd-artifacts
Reviewer Review Type Date Requested Status
Georgy Redkozubov Approve
Linaro Infrastructure Pending
Review via email: mp+113168@code.launchpad.net

Description of the change

This patch add a migration script to export Android manifests as native Jenkins artifacts, which get exported regardless if build succeeds or fails, see related bug for more info.

To post a comment you must log in.
Revision history for this message
Georgy Redkozubov (gesha) wrote :

Looks good. Thanks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'utils/mangle-jobs/artifacts-add.mangle'
2--- utils/mangle-jobs/artifacts-add.mangle 1970-01-01 00:00:00 +0000
3+++ utils/mangle-jobs/artifacts-add.mangle 2012-07-03 07:57:22 +0000
4@@ -0,0 +1,19 @@
5+# Add Artifact archiving config
6+
7+from lxml.etree import fromstring
8+
9+
10+new_node = fromstring("""\
11+ <hudson.tasks.ArtifactArchiver>
12+ <artifacts>build/out/*.xml</artifacts>
13+ <latestOnly>false</latestOnly>
14+ </hudson.tasks.ArtifactArchiver>
15+""")
16+
17+def mangle(tree):
18+ if tree.xpath("//hudson.tasks.ArtifactArchiver"):
19+ # Needed config already there - don't change
20+ return False
21+
22+ parent_node = tree.xpath('/project/publishers')[0]
23+ parent_node.insert(0, new_node)

Subscribers

People subscribed via source and target branches