deploy¶
[1m [0m
[1m [0m[1;33mUsage: [0m[1mlftools-uv deploy [OPTIONS] COMMAND [ARGS]...[0m[1m [0m[1m [0m
[1m [0m
Deploy files to a Nexus sites repository.
[2mâ•─[0m[2m Options [0m[2m───────────────────────────────────────────────────────────────────[0m[2m─╮[0m
[2m│[0m [1;36m-[0m[1;36m-help[0m Show this message and exit. [2m│[0m
[2m╰──────────────────────────────────────────────────────────────────────────────╯[0m
[2mâ•─[0m[2m Commands [0m[2m──────────────────────────────────────────────────────────────────[0m[2m─╮[0m
[2m│[0m [1;36marchives [0m[1;36m [0m Archive files to a Nexus site repository. [2m│[0m
[2m│[0m [1;36mcopy-archives [0m[1;36m [0m Copy files for archiving. [2m│[0m
[2m│[0m [1;36mfile [0m[1;36m [0m Deploy a file to Nexus using Maven. [2m│[0m
[2m│[0m [1;36mlogs [0m[1;36m [0m Deploy logs to a Nexus site repository. [2m│[0m
[2m│[0m [1;36ms3 [0m[1;36m [0m Deploy logs and archives to a S3 bucket. [2m│[0m
[2m│[0m [1;36mmaven-file [0m[1;36m [0m Deploy a file to Nexus using Maven [2m│[0m
[2m│[0m [1;36m [0m deploy:deploy-file. [2m│[0m
[2m│[0m [1;36mnexus [0m[1;36m [0m Deploy a Maven repository to a specified Nexus [2m│[0m
[2m│[0m [1;36m [0m repository. [2m│[0m
[2m│[0m [1;36mnexus-stage [0m[1;36m [0m Deploy a Maven repository to a Nexus staging [2m│[0m
[2m│[0m [1;36m [0m repository. [2m│[0m
[2m│[0m [1;36mnexus-stage-repo-close [0m[1;36m [0m Close a Nexus staging repo. [2m│[0m
[2m│[0m [1;36mnexus-stage-repo-create [0m[1;36m [0m Create a Nexus staging repo. [2m│[0m
[2m│[0m [1;36mnexus-zip [0m[1;36m [0m Deploy zip file containing artifacts to Nexus [2m│[0m
[2m│[0m [1;36m [0m using cURL. [2m│[0m
[2m╰──────────────────────────────────────────────────────────────────────────────╯[0m
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¶
[1m [0m
[1m [0m[1;33mUsage: [0m[1mlftools-uv deploy archives [OPTIONS] NEXUS_URL NEXUS_PATH WORKSPACE[0m[1m [0m[1m [0m
[1m [0m
Archive files to a Nexus site repository.
[2mProvides 2 ways to archive files:[0m
[40m [0m
[40m [0m[97;40m1) globstar pattern provided by the user.[0m[40m [0m[40m [0m
[40m [0m[97;40m2) $WORKSPACE/archives directory provided by the user.[0m[40m [0m[40m [0m
[40m [0m
[2mTo use this command the Nexus server must have a site repository configured[0m[2m [0m
[2mwith the name "logs" as this is a hardcoded log path.[0m
[2mâ•─[0m[2m Arguments [0m[2m─────────────────────────────────────────────────────────────────[0m[2m─╮[0m
[2m│[0m [31m*[0m nexus_url [1;33mTEXT[0m Nexus server URL [2m│[0m
[2m│[0m [2;33m[env var: NEXUS_URL] [0m [2m│[0m
[2m│[0m [2;31m[required] [0m [2m│[0m
[2m│[0m [31m*[0m nexus_path [1;33mTEXT[0m Path on Nexus where files will be deployed [2m│[0m
[2m│[0m [2;33m[env var: NEXUS_PATH] [0m [2m│[0m
[2m│[0m [2;31m[required] [0m [2m│[0m
[2m│[0m [31m*[0m workspace [1;33mTEXT[0m Workspace directory containing files to deploy [2m│[0m
[2m│[0m [2;33m[env var: WORKSPACE] [0m [2m│[0m
[2m│[0m [2;31m[required] [0m [2m│[0m
[2m╰──────────────────────────────────────────────────────────────────────────────╯[0m
[2mâ•─[0m[2m Options [0m[2m───────────────────────────────────────────────────────────────────[0m[2m─╮[0m
[2m│[0m [1;36m-[0m[1;36m-pattern[0m [1;32m-p[0m [1;33mTEXT[0m Unix glob patterns for files to deploy [2m│[0m
[2m│[0m [1;36m-[0m[1;36m-help[0m [1;33m [0m Show this message and exit. [2m│[0m
[2m╰──────────────────────────────────────────────────────────────────────────────╯[0m
copy-archives¶
[1m [0m
[1m [0m[1;33mUsage: [0m[1mlftools-uv deploy copy-archives [OPTIONS] WORKSPACE [PATTERN]...[0m[1m [0m[1m [0m
[1m [0m
Copy files for archiving.
[2mArguments:[0m[2m [0m[2mworkspace: Typically a Jenkins WORKSPACE to copy files from.[0m[2m [0m
[2mpattern: Space-separated list of Unix style glob patterns of files to[0m[2m [0m[2mcopy for[0m
[2marchiving.[0m
[2mâ•─[0m[2m Arguments [0m[2m─────────────────────────────────────────────────────────────────[0m[2m─╮[0m
[2m│[0m [31m*[0m workspace [1;33mTEXT [0m Workspace directory to copy files from [2m│[0m
[2m│[0m [2;33m[env var: WORKSPACE] [0m [2m│[0m
[2m│[0m [2;31m[required] [0m [2m│[0m
[2m│[0m pattern [1;2;33m[[0m[1;33mPATTERN[0m[1;2;33m][0m[1;33m...[0m Unix glob patterns of files to copy for [2m│[0m
[2m│[0m archiving [2m│[0m
[2m╰──────────────────────────────────────────────────────────────────────────────╯[0m
[2mâ•─[0m[2m Options [0m[2m───────────────────────────────────────────────────────────────────[0m[2m─╮[0m
[2m│[0m [1;36m-[0m[1;36m-help[0m Show this message and exit. [2m│[0m
[2m╰──────────────────────────────────────────────────────────────────────────────╯[0m
logs¶
[1m [0m
[1m [0m[1;33mUsage: [0m[1mlftools-uv deploy logs [OPTIONS] NEXUS_URL NEXUS_PATH BUILD_URL[0m[1m [0m[1m [0m
[1m [0m
Deploy logs to a Nexus site repository.
[2mThis script fetches logs and system information and pushes them to Nexus[0m[2m [0m[2mfor [0m
[2mlog archiving.[0m
[2mTo use this script the Nexus server must have a site repository configured[0m[2m [0m
[2mwith the name "logs" as this is a hardcoded path.[0m
[2mâ•─[0m[2m Arguments [0m[2m─────────────────────────────────────────────────────────────────[0m[2m─╮[0m
[2m│[0m [31m*[0m nexus_url [1;33mTEXT[0m Nexus server URL [2m│[0m
[2m│[0m [2;33m[env var: NEXUS_URL] [0m [2m│[0m
[2m│[0m [2;31m[required] [0m [2m│[0m
[2m│[0m [31m*[0m nexus_path [1;33mTEXT[0m Path on Nexus where logs will be deployed [2m│[0m
[2m│[0m [2;33m[env var: NEXUS_PATH] [0m [2m│[0m
[2m│[0m [2;31m[required] [0m [2m│[0m
[2m│[0m [31m*[0m build_url [1;33mTEXT[0m Build URL for log collection [2m│[0m
[2m│[0m [2;33m[env var: BUILD_URL] [0m [2m│[0m
[2m│[0m [2;31m[required] [0m [2m│[0m
[2m╰──────────────────────────────────────────────────────────────────────────────╯[0m
[2mâ•─[0m[2m Options [0m[2m───────────────────────────────────────────────────────────────────[0m[2m─╮[0m
[2m│[0m [1;36m-[0m[1;36m-help[0m Show this message and exit. [2m│[0m
[2m╰──────────────────────────────────────────────────────────────────────────────╯[0m
maven-file¶
[1m [0m
[1m [0m[1;33mUsage: [0m[1mlftools-uv deploy maven-file [OPTIONS] NEXUS_URL REPO_ID FILE_NAME[0m[1m [0m[1m [0m
[1m [0m
Deploy a file to Nexus using Maven deploy:deploy-file.
[2mThis script takes a file and deploys to a Nexus repository using Maven[0m[2m [0m[2mdeploy [0m
[2mplugin.[0m
[2mâ•─[0m[2m Arguments [0m[2m─────────────────────────────────────────────────────────────────[0m[2m─╮[0m
[2m│[0m [31m*[0m nexus_url [1;33mTEXT[0m Nexus server URL [2m│[0m
[2m│[0m [2;33m[env var: NEXUS_URL] [0m [2m│[0m
[2m│[0m [2;31m[required] [0m [2m│[0m
[2m│[0m [31m*[0m repo_id [1;33mTEXT[0m Repository ID [2m│[0m
[2m│[0m [2;33m[env var: REPO_ID] [0m [2m│[0m
[2m│[0m [2;31m[required] [0m [2m│[0m
[2m│[0m [31m*[0m file_name [1;33mTEXT[0m File name to deploy [2m│[0m
[2m│[0m [2;33m[env var: FILE_NAME] [0m [2m│[0m
[2m│[0m [2;31m[required] [0m [2m│[0m
[2m╰──────────────────────────────────────────────────────────────────────────────╯[0m
[2mâ•─[0m[2m Options [0m[2m───────────────────────────────────────────────────────────────────[0m[2m─╮[0m
[2m│[0m [1;36m-[0m[1;36m-maven[0m[1;36m-bin[0m [1;32m-b[0m [1;33mTEXT[0m Path of maven binary. [2m│[0m
[2m│[0m [2;33m[env var: MAVEN_BIN] [0m [2m│[0m
[2m│[0m [1;36m-[0m[1;36m-global[0m[1;36m-settings[0m [1;32m-gs[0m [1;33mTEXT[0m Global settings file. [2m│[0m
[2m│[0m [2;33m[env var: GLOBAL_SETTINGS_FILE] [0m [2m│[0m
[2m│[0m [1;36m-[0m[1;36m-settings[0m [1;32m-s[0m [1;33mTEXT[0m Settings file. [2m│[0m
[2m│[0m [2;33m[env var: SETTINGS_FILE] [0m [2m│[0m
[2m│[0m [1;36m-[0m[1;36m-maven[0m[1;36m-params[0m [1;32m-p[0m [1;33mTEXT[0m Pass Maven commandline options to the [2m│[0m
[2m│[0m mvn command. [2m│[0m
[2m│[0m [1;36m-[0m[1;36m-artifact[0m[1;36m-id[0m [1;32m-a[0m [1;33mTEXT[0m Maven Artifact ID. [2m│[0m
[2m│[0m [1;36m-[0m[1;36m-classifier[0m [1;32m-c[0m [1;33mTEXT[0m Maven Artifact classifier. [2m│[0m
[2m│[0m [1;36m-[0m[1;36m-group[0m[1;36m-id[0m [1;32m-g[0m [1;33mTEXT[0m Maven Group ID. [2m│[0m
[2m│[0m [1;36m-[0m[1;36m-packaging[0m [1;32m-k[0m [1;33mTEXT[0m Maven packaging. [2m│[0m
[2m│[0m [1;36m-[0m[1;36m-version[0m [1;32m-v[0m [1;33mTEXT[0m Maven Artifact version. [2m│[0m
[2m│[0m [1;36m-[0m[1;36m-repo[0m[1;36m-url[0m [1;32m-r[0m [1;33mTEXT[0m Maven repository URL. [2m│[0m
[2m│[0m [1;36m-[0m[1;36m-repository[0m[1;36m-layout[0m [1;32m-l[0m [1;33mTEXT[0m Repository layout. [2m│[0m
[2m│[0m [2m[default: default] [0m [2m│[0m
[2m│[0m [1;36m-[0m[1;36m-help[0m [1;33m [0m Show this message and exit. [2m│[0m
[2m╰──────────────────────────────────────────────────────────────────────────────╯[0m
nexus¶
[1m [0m
[1m [0m[1;33mUsage: [0m[1mlftools-uv deploy nexus [OPTIONS] NEXUS_REPO_URL DEPLOY_DIR[0m[1m [0m[1m [0m
[1m [0m
Deploy a Maven repository to a specified Nexus repository.
[2mThis script takes a local Maven repository and deploys it to a Nexus[0m[2m [0m
[2mrepository.[0m
[2mRequires the Nexus Unpack plugin and permission assigned to the upload user.[0m
[2mâ•─[0m[2m Arguments [0m[2m─────────────────────────────────────────────────────────────────[0m[2m─╮[0m
[2m│[0m [31m*[0m nexus_repo_url [1;33mTEXT[0m Nexus repository URL [2m│[0m
[2m│[0m [2;33m[env var: NEXUS_REPO_URL] [0m [2m│[0m
[2m│[0m [2;31m[required] [0m [2m│[0m
[2m│[0m [31m*[0m deploy_dir [1;33mTEXT[0m Directory containing Maven repository to [2m│[0m
[2m│[0m deploy [2m│[0m
[2m│[0m [2;33m[env var: DEPLOY_DIR] [0m [2m│[0m
[2m│[0m [2;31m[required] [0m [2m│[0m
[2m╰──────────────────────────────────────────────────────────────────────────────╯[0m
[2mâ•─[0m[2m Options [0m[2m───────────────────────────────────────────────────────────────────[0m[2m─╮[0m
[2m│[0m [1;36m-[0m[1;36m-snapshot[0m [1;32m-s[0m Deploy a snapshot repo. [2m│[0m
[2m│[0m [1;36m-[0m[1;36m-help[0m Show this message and exit. [2m│[0m
[2m╰──────────────────────────────────────────────────────────────────────────────╯[0m
nexus-stage¶
[1m [0m
[1m [0m[1;33mUsage: [0m[1mlftools-uv deploy nexus-stage [OPTIONS] NEXUS_URL STAGING_PROFILE_ID[0m[1m [0m[1m [0m
[1m [0m[1m DEPLOY_DIR[0m[1m [0m[1m [0m
[1m [0m
Deploy a Maven repository to a Nexus staging repository.
[2mThis script takes a local Maven repository and deploys it to a Nexus[0m[2m [0m[2mstaging [0m
[2mrepository as defined by the staging-profile-id.[0m
[2mâ•─[0m[2m Arguments [0m[2m─────────────────────────────────────────────────────────────────[0m[2m─╮[0m
[2m│[0m [31m*[0m nexus_url [1;33mTEXT[0m Nexus server URL [2m│[0m
[2m│[0m [2;33m[env var: NEXUS_URL] [0m [2m│[0m
[2m│[0m [2;31m[required] [0m [2m│[0m
[2m│[0m [31m*[0m staging_profile_id [1;33mTEXT[0m Nexus staging profile ID [2m│[0m
[2m│[0m [2;33m[env var: STAGING_PROFILE_ID] [0m [2m│[0m
[2m│[0m [2;31m[required] [0m [2m│[0m
[2m│[0m [31m*[0m deploy_dir [1;33mTEXT[0m Directory containing Maven repository to [2m│[0m
[2m│[0m deploy [2m│[0m
[2m│[0m [2;33m[env var: DEPLOY_DIR] [0m [2m│[0m
[2m│[0m [2;31m[required] [0m [2m│[0m
[2m╰──────────────────────────────────────────────────────────────────────────────╯[0m
[2mâ•─[0m[2m Options [0m[2m───────────────────────────────────────────────────────────────────[0m[2m─╮[0m
[2m│[0m [1;36m-[0m[1;36m-help[0m Show this message and exit. [2m│[0m
[2m╰──────────────────────────────────────────────────────────────────────────────╯[0m
nexus-zip¶
[1m [0m
[1m [0m[1;33mUsage: [0m[1mlftools-uv deploy nexus-zip [OPTIONS] NEXUS_URL NEXUS_REPO NEXUS_PATH[0m[1m [0m[1m [0m
[1m [0m[1m DEPLOY_ZIP[0m[1m [0m[1m [0m
[1m [0m
Deploy zip file containing artifacts to Nexus using cURL.
[2mThis script simply takes a zip file preformatted in the correct[0m[2m [0m[2mdirectory for [0m
[2mNexus and uploads to a specified Nexus repo using the[0m[2m [0m[2mcontent-compressed URL.[0m
[2mRequires the Nexus Unpack plugin and permission assigned to the upload user.[0m
[2mâ•─[0m[2m Arguments [0m[2m─────────────────────────────────────────────────────────────────[0m[2m─╮[0m
[2m│[0m [31m*[0m nexus_url [1;33mTEXT[0m Nexus server URL [2m│[0m
[2m│[0m [2;33m[env var: NEXUS_URL] [0m [2m│[0m
[2m│[0m [2;31m[required] [0m [2m│[0m
[2m│[0m [31m*[0m nexus_repo [1;33mTEXT[0m Nexus repository name [2m│[0m
[2m│[0m [2;33m[env var: NEXUS_REPO] [0m [2m│[0m
[2m│[0m [2;31m[required] [0m [2m│[0m
[2m│[0m [31m*[0m nexus_path [1;33mTEXT[0m Path on Nexus where zip will be deployed [2m│[0m
[2m│[0m [2;33m[env var: NEXUS_PATH] [0m [2m│[0m
[2m│[0m [2;31m[required] [0m [2m│[0m
[2m│[0m [31m*[0m deploy_zip [1;33mTEXT[0m Path to zip file to deploy [2m│[0m
[2m│[0m [2;33m[env var: DEPLOY_DIR] [0m [2m│[0m
[2m│[0m [2;31m[required] [0m [2m│[0m
[2m╰──────────────────────────────────────────────────────────────────────────────╯[0m
[2mâ•─[0m[2m Options [0m[2m───────────────────────────────────────────────────────────────────[0m[2m─╮[0m
[2m│[0m [1;36m-[0m[1;36m-help[0m Show this message and exit. [2m│[0m
[2m╰──────────────────────────────────────────────────────────────────────────────╯[0m