diff options
Diffstat (limited to 'lib/python2.7/site-packages/autobuilder/buildsteps/PublishDistroData.py')
-rw-r--r-- | lib/python2.7/site-packages/autobuilder/buildsteps/PublishDistroData.py | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/lib/python2.7/site-packages/autobuilder/buildsteps/PublishDistroData.py b/lib/python2.7/site-packages/autobuilder/buildsteps/PublishDistroData.py deleted file mode 100644 index 83aeb8d1..00000000 --- a/lib/python2.7/site-packages/autobuilder/buildsteps/PublishDistroData.py +++ /dev/null @@ -1,57 +0,0 @@ -''' -Created on March 11, 2016 - -__author__ = "Elizabeth 'pidge' Flanagan" -__copyright__ = "Copyright 2012-2016, Intel Corp." -__credits__ = ["Elizabeth Flanagan"] -__license__ = "GPL" -__version__ = "2.0" -__maintainer__ = "Elizabeth Flanagan" -__email__ = "pidge@toganlabs.com" -''' - -from buildbot.steps.shell import ShellCommand -from twisted.python import log -import os, datetime -from autobuilder.config import * - -class PublishDistroData(ShellCommand): - - haltOnFailure = False - flunkOnFailure = True - name = "Publishing Artifacts" - def __init__(self, factory, argdict=None, **kwargs): - self.factory = factory - self.description = "Publishing DistroData Artifacts" - self.workerdir=os.path.join(os.path.join(YOCTO_ABBASE, "yocto-worker")) - for k, v in argdict.iteritems(): - if type(v) is bool: - setattr(self, k, str(v)) - else: - setattr(self, k, v) - self.timeout = 100000 - kwargs['timeout']=self.timeout - ShellCommand.__init__(self, **kwargs) - - def start(self): - command = "" - DEST=self.getProperty("DEST") - buildername=self.getProperty("buildername") - self.basedir=os.path.join(os.path.join( - self.workerdir, buildername), - "build/build/") - self.tmpdir = os.environ.get("TMP_DIR") - if self.tmpdir is None: - self.tmpdir = os.path.join(self.basedir, "tmp") - command+="mkdir -p " + os.path.join(DEST, 'distro_data/'+ self.machine) + ";" - command+="cp -R --dereference " + os.path.join(self.tmpdir, "log/distrocheck.csv") + \ - " " + os.path.join(DEST, 'distro_data/'+ self.machine) + ";" - command+="cp -R --dereference " + os.path.join(self.tmpdir, "log/distrodata.csv") + \ - " " + os.path.join(DEST, 'distro_data/'+ self.machine) + ";" - command+="cp -R --dereference " + os.path.join(self.tmpdir, "log/missinglicense.csv") + \ - " " + os.path.join(DEST, 'distro_data/'+ self.machine) + ";" - command+="cp -R --dereference " + os.path.join(self.tmpdir, "log/checkpkg.csv") + \ - " " + os.path.join(DEST, 'distro_data/'+ self.machine) + ";" - self.command = command - ShellCommand.start(self) - |