From: gmane@reliableembeddedsystems.com
To: yocto@yoctoproject.org
Cc: joshua.g.lock@intel.com, robert.berger@reliableembeddedsystems.com
Subject: [yocto-autobuilder][PATCH] PublishArtifacts.py: deal only with built toolchains, cp also md5 and manifests
Date: Mon, 10 Oct 2016 01:44:40 -0500 [thread overview]
Message-ID: <35ab47fa82f7707f84e445919ddbbef5@reliableembeddedsystems.com> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: 0001-deal-only-with-built-toolchains-cp-also-md5-and-mani.patch --]
[-- Type: text/x-diff; name=0001-deal-only-with-built-toolchains-cp-also-md5-and-mani.patch, Size: 2971 bytes --]
From 8f28afbfc21dc84f076b0cc620e578f9607d1465 Mon Sep 17 00:00:00 2001
From: Robert Berger <robert.berger@ReliableEmbeddedSystems.com>
Date: Mon, 10 Oct 2016 06:26:06 +0000
Subject: [yocto-autobuilder][PATCH] PublishArtifacts.py: deal only with built toolchains, cp also
md5 and manifests
Signed-off-by: Robert Berger <robert.berger@ReliableEmbeddedSystems.com>
---
.../autobuilder/buildsteps/PublishArtifacts.py | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/lib/python2.7/site-packages/autobuilder/buildsteps/PublishArtifacts.py b/lib/python2.7/site-packages/autobuilder/buildsteps/PublishArtifacts.py
index 633600c..46d7b40 100644
--- a/lib/python2.7/site-packages/autobuilder/buildsteps/PublishArtifacts.py
+++ b/lib/python2.7/site-packages/autobuilder/buildsteps/PublishArtifacts.py
@@ -154,14 +154,16 @@ class PublishArtifacts(ShellCommand):
elif artifact == "toolchain":
artifact_name, deploy_image_dir = self.getDeployNames(artifact, buildername)
command=command+self.generateMD5cmd(artifact, deploy_image_dir)
- command=command+"mkdir -p " + os.path.join(DEST, X86TC_PUBLISH_DIR) + ";"
+ command=command+"if [ -e " + os.path.join(deploy_image_dir, "poky-*i686-core-image*.sh ") + " ]; then " + \
+ "mkdir -p " + os.path.join(DEST, X86TC_PUBLISH_DIR) + "; "
command=command+"cp -R --no-dereference --preserve=links " + \
- os.path.join(deploy_image_dir, "poky-*i686-core-image*.sh ") + \
- os.path.join(DEST, X86TC_PUBLISH_DIR) + pipeline + ";"
- command=command+"mkdir -p " + os.path.join(DEST, X8664TC_PUBLISH_DIR) + ";"
+ os.path.join(deploy_image_dir, "poky-*i686-core-image* ") + \
+ os.path.join(DEST, X86TC_PUBLISH_DIR) + pipeline + "; fi;"
+ command=command+"if [ -e " + os.path.join(deploy_image_dir, "poky-*x86_64-core-image*.sh ") + " ]; then " + \
+ "mkdir -p " + os.path.join(DEST, X8664TC_PUBLISH_DIR) + "; "
command=command+"cp -R --no-dereference --preserve=links " + \
- os.path.join(deploy_image_dir, "poky-*x86_64-core-image*.sh ") + \
- os.path.join(DEST, X8664TC_PUBLISH_DIR) + pipeline + ";"
+ os.path.join(deploy_image_dir, "poky-*x86_64-core-image* ") + \
+ os.path.join(DEST, X8664TC_PUBLISH_DIR) + pipeline + "; fi;"
elif artifact == "uninative":
artifact_name, deploy_image_dir = self.getDeployNames(artifact, buildername)
command=command+self.generateMD5cmd(artifact, deploy_image_dir)
--
2.7.4
next reply other threads:[~2016-10-10 6:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-10 6:44 gmane [this message]
2016-10-12 14:28 ` [yocto-autobuilder][PATCH] PublishArtifacts.py: deal only with built toolchains, cp also md5 and manifests Bill Randle
2016-10-12 15:22 ` Beth 'pidge' Flanagan
2016-10-12 15:29 ` Beth 'pidge' Flanagan
2016-10-13 21:40 ` Joshua Lock
2016-10-13 21:29 ` Lock, Joshua G
2016-10-13 22:38 ` gmane
2016-10-14 9:27 ` Joshua Lock
2016-10-14 9:33 ` gmane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=35ab47fa82f7707f84e445919ddbbef5@reliableembeddedsystems.com \
--to=gmane@reliableembeddedsystems.com \
--cc=joshua.g.lock@intel.com \
--cc=robert.berger@reliableembeddedsystems.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.