Deploy

Usage: lftools deploy [OPTIONS] COMMAND [ARGS]...

  Deploy files to a Nexus sites repository.

  Deploy commands use ~/.netrc for authentication. This file should be pre-
  configured with an entry for the Nexus server. Eg.

          machine nexus.opendaylight.org login logs_user password logs_password

Options:
  --help  Show this message and exit.

Commands:
  archives                 Archive files to a Nexus site repository.
  copy-archives            Copy files for archiving.
  file                     Upload file to Nexus as a Maven artifact using...
  logs                     Deploy logs to a Nexus site repository.
  maven-file               Deploy a file to a Nexus maven2 repository.
  nexus                    Deploy a Maven repository to a specified Nexus...
  nexus-stage              Deploy a Maven repository to a Nexus staging...
  nexus-stage-repo-close   Close a Nexus staging repo.
  nexus-stage-repo-create  Create a Nexus staging repo.
  nexus-zip                Deploy zip file containing artifacts to Nexus...

Commands

archives

Usage: lftools deploy archives [OPTIONS] NEXUS_URL NEXUS_PATH WORKSPACE

  Archive files to a Nexus site repository.

  Provides 2 ways to archive files:

          1) globstar pattern provided by the user.
          2) $WORKSPACE/archives directory provided by the user.

  To use this command the Nexus server must have a site repository
  configured with the name "logs" as this is a hardcoded log path.

Options:
  -p, --pattern TEXT
  --help              Show this message and exit.

copy-archives

Usage: lftools deploy copy-archives [OPTIONS] WORKSPACE [PATTERN]...

  Copy files for archiving.

  Arguments:

      workspace: Typically a Jenkins WORKSPACE to copy files from.
      pattern: Space-separated list of Unix style glob patterns of files to
      copy for archiving. (default: false)

Options:
  --help  Show this message and exit.

logs

Usage: lftools deploy logs [OPTIONS] NEXUS_URL NEXUS_PATH BUILD_URL

  Deploy logs to a Nexus site repository.

  This script fetches logs and system information and pushes them to Nexus
  for log archiving.

  To use this script the Nexus server must have a site repository configured
  with the name "logs" as this is a hardcoded path.

Options:
  --help  Show this message and exit.

maven-file

Usage: lftools deploy maven-file [OPTIONS] NEXUS_URL REPO_ID FILE_NAME

  Deploy a file to a Nexus maven2 repository.

  As this script uses mvn to deploy. The server configuration should be
  configured in your local settings.xml. By default the script uses the mvn
  default "~/.m2/settings.xml" for the configuration but this can be
  overrided in the following order:

          1. Passed through CLI option "-s" ("-gs" for global-settings)
          2. Environment variable "$SETTINGS_FILE" ("$GLOBAL_SETTINGS_FILE" for global-settings)
          3. Maven default "~/.m2/settings.xml".

  If pom-file is passed in via the "-f" option then the Maven GAV parameters
  are not necessary. pom-file setting overrides the Maven GAV parameters.

Options:
  -b, --maven-bin TEXT         Path of maven binary.
  -gs, --global-settings TEXT  Global settings file.
  -s, --settings TEXT          Settings file.
  -p, --maven-params TEXT      Pass Maven commandline options to the mvn
                               command.
  -a, --artifact-id TEXT       Maven Artifact ID.
  -c, --classifier TEXT        File classifier.
  -f, --pom-file TEXT          Pom file to extract GAV information from.
  -g, --group-id TEXT          Maven Group ID
  -v, --version TEXT           Maven artifact version.
  --help                       Show this message and exit.

nexus

Usage: lftools deploy nexus [OPTIONS] NEXUS_REPO_URL DEPLOY_DIR

  Deploy a Maven repository to a specified Nexus repository.

  This script takes a local Maven repository and deploys it to a Nexus
  repository.

  Example Repository:

      https://nexus.example.org/content/repositories/release

Options:
  -s, --snapshot  Deploy a snapshot repo.
  --help          Show this message and exit.

nexus-stage

Usage: lftools deploy nexus-stage [OPTIONS] NEXUS_URL STAGING_PROFILE_ID
                                  DEPLOY_DIR

  Deploy a Maven repository to a Nexus staging repository.

  This script takes a local Maven repository and deploys it to a Nexus
  staging repository as defined by the staging-profile-id.

Options:
  --help  Show this message and exit.

nexus-zip

Usage: lftools deploy nexus-zip [OPTIONS] NEXUS_URL NEXUS_REPO NEXUS_PATH
                                DEPLOY_ZIP

  Deploy zip file containing artifacts to Nexus using cURL.

  This script simply takes a zip file preformatted in the correct directory
  for Nexus and uploads to a specified Nexus repo using the content-
  compressed URL.

  Requires the Nexus Unpack plugin and permission assigned to the upload
  user.

Options:
  --help  Show this message and exit.