deploy¶
Usage: lftools-uv deploy [OPTIONS] COMMAND [ARGS]...
Deploy files to a Nexus sites repository.
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────╮
│ archives Archive files to a Nexus site repository. │
│ copy-archives Copy files for archiving. │
│ file Deploy a file to Nexus using Maven. │
│ logs Deploy logs to a Nexus site repository. │
│ s3 Deploy logs and archives to a S3 bucket. │
│ maven-file Deploy a file to Nexus using Maven │
│ deploy:deploy-file. │
│ nexus Deploy a Maven repository to a specified Nexus │
│ repository. │
│ nexus-stage Deploy a Maven repository to a Nexus staging │
│ repository. │
│ 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 using │
│ cURL. │
╰──────────────────────────────────────────────────────────────────────────────╯
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
Commands¶
archives¶
Usage: lftools-uv 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.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * nexus_url TEXT Nexus server URL │
│ [env var: NEXUS_URL] │
│ [required] │
│ * nexus_path TEXT Path on Nexus where files will be deployed │
│ [env var: NEXUS_PATH] │
│ [required] │
│ * workspace TEXT Workspace directory containing files to deploy │
│ [env var: WORKSPACE] │
│ [required] │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --pattern -p TEXT Unix glob patterns for files to deploy │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
copy-archives¶
Usage: lftools-uv 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.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * workspace TEXT Workspace directory to copy files from │
│ [env var: WORKSPACE] │
│ [required] │
│ pattern [PATTERN]... Unix glob patterns of files to copy for │
│ archiving │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
logs¶
Usage: lftools-uv 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.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * nexus_url TEXT Nexus server URL │
│ [env var: NEXUS_URL] │
│ [required] │
│ * nexus_path TEXT Path on Nexus where logs will be deployed │
│ [env var: NEXUS_PATH] │
│ [required] │
│ * build_url TEXT Build URL for log collection │
│ [env var: BUILD_URL] │
│ [required] │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
maven-file¶
Usage: lftools-uv deploy maven-file [OPTIONS] NEXUS_URL REPO_ID FILE_NAME
Deploy a file to Nexus using Maven deploy:deploy-file.
This script takes a file and deploys to a Nexus repository using Maven deploy
plugin.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * nexus_url TEXT Nexus server URL │
│ [env var: NEXUS_URL] │
│ [required] │
│ * repo_id TEXT Repository ID │
│ [env var: REPO_ID] │
│ [required] │
│ * file_name TEXT File name to deploy │
│ [env var: FILE_NAME] │
│ [required] │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --maven-bin -b TEXT Path of maven binary. │
│ [env var: MAVEN_BIN] │
│ --global-settings -gs TEXT Global settings file. │
│ [env var: GLOBAL_SETTINGS_FILE] │
│ --settings -s TEXT Settings file. │
│ [env var: SETTINGS_FILE] │
│ --maven-params -p TEXT Pass Maven commandline options to the │
│ mvn command. │
│ --artifact-id -a TEXT Maven Artifact ID. │
│ --classifier -c TEXT Maven Artifact classifier. │
│ --group-id -g TEXT Maven Group ID. │
│ --packaging -k TEXT Maven packaging. │
│ --version -v TEXT Maven Artifact version. │
│ --repo-url -r TEXT Maven repository URL. │
│ --repository-layout -l TEXT Repository layout. │
│ [default: default] │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
nexus¶
Usage: lftools-uv 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.
Requires the Nexus Unpack plugin and permission assigned to the upload user.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * nexus_repo_url TEXT Nexus repository URL │
│ [env var: NEXUS_REPO_URL] │
│ [required] │
│ * deploy_dir TEXT Directory containing Maven repository to │
│ deploy │
│ [env var: DEPLOY_DIR] │
│ [required] │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --snapshot -s Deploy a snapshot repo. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
nexus-stage¶
Usage: lftools-uv 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.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * nexus_url TEXT Nexus server URL │
│ [env var: NEXUS_URL] │
│ [required] │
│ * staging_profile_id TEXT Nexus staging profile ID │
│ [env var: STAGING_PROFILE_ID] │
│ [required] │
│ * deploy_dir TEXT Directory containing Maven repository to │
│ deploy │
│ [env var: DEPLOY_DIR] │
│ [required] │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯
nexus-zip¶
Usage: lftools-uv 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.
╭─ Arguments ──────────────────────────────────────────────────────────────────╮
│ * nexus_url TEXT Nexus server URL │
│ [env var: NEXUS_URL] │
│ [required] │
│ * nexus_repo TEXT Nexus repository name │
│ [env var: NEXUS_REPO] │
│ [required] │
│ * nexus_path TEXT Path on Nexus where zip will be deployed │
│ [env var: NEXUS_PATH] │
│ [required] │
│ * deploy_zip TEXT Path to zip file to deploy │
│ [env var: DEPLOY_DIR] │
│ [required] │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────╯