[yocto] [PATCH 3/3] PublishArtifacts: add md5sums artifact
Lynn 'Cyrin' Conway
lynncyrin at gmail.com
Mon Jun 9 11:51:52 PDT 2014
REF: Bug ID 6354
Added a md5sums artifact into PublishArtifacts
Also changed md5sums to generate in the
temp/deploy/images directory - (for real this time!!!)
Signed-off-by: Lynn 'Cyrin' Conway <lynncyrin at gmail.com>
---
.../autobuilder/buildsteps/PublishArtifacts.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/python2.7/site-packages/autobuilder/buildsteps/PublishArtifacts.py b/lib/python2.7/site-packages/autobuilder/buildsteps/PublishArtifacts.py
index db86ec2..289d045 100644
--- a/lib/python2.7/site-packages/autobuilder/buildsteps/PublishArtifacts.py
+++ b/lib/python2.7/site-packages/autobuilder/buildsteps/PublishArtifacts.py
@@ -180,6 +180,10 @@ class PublishArtifacts(ShellCommand):
command=command+"cp -R --no-dereference " + \
os.path.join(self.basedir, "conf/") + \
"/* " + DEST + "/" + MACHINE_PUBLISH_DIR + "/" + artifact_name + "/conf;"
+ elif artifact == "md5sums":
+ artifact_name, deploy_image_dir = self.getDeployNames(artifact, buildername)
+ command = command + "for x in `find " + deploy_image_dir + " -type f`; do "
+ command = command + "md5sum $x >> $x.md5sum; done"
elif artifact == "None":
command=command+"echo 'Skipping copy of " + artifact + ".'"
else:
--
1.7.9.5
More information about the yocto
mailing list