Add deploy command to lftools 40/4340/4
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 6 Mar 2017 22:59:38 +0000 (17:59 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Sat, 15 Apr 2017 19:25:20 +0000 (15:25 -0400)
commite0415e53ce802c52850d4bb1e6ba32dfe65551c5
treeec512b0d744701969f76c274eb103ea6e012327f
parent48755afc76eac5b29104c24387d3da98f5803ad8
Add deploy command to lftools

Provides a generic script that can be used to deploy artifacts to a
Nexus site repository. Currently it is hardcoded to use a site repo
named "logs" but a future update can be implemented to allow this repo
to be configurable if necessary.

Provides 3 deploy commands:

archives)
  Deploys everything that exists in $WORKSPACE/archives if it exists.
  This needs to be provided by the job. Designed to run at the end of a
  Jenkins build.

logs)
  Deploys system information and build console logs. The script will
  handle all this. Designed to run at the end of a Jenkins build.

files)
  An arbitrary list of files passed by the user will be deployed to the
  logs server into an archives directory. Designed to be used inside of
  scripts at any time when the job needs to deploy anything to the
  server. This is an alternative to having to place all files inside an
  archives directory.

  (Unimplemented, will be implemented in a future patch)

Change-Id: Ie48f8c65d89fcdce2cc2619fa4bc3408b1e4d709
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
lftools/cli/__init__.py
lftools/cli/deploy.py [new file with mode: 0644]
setup.py
shell/deploy [new file with mode: 0755]
shell/deploy-archives [deleted file]