io7m | single-page | multi-page
1.7. Show
1. Command-Line Interface
1.9. Version

Upload

Name

Upload - Upload files to staging repositories

Description

The upload command uploads files to a staging repository. The command will recurse into the directory named by --directory and upload every regular file it encounters. Uploads of individual files are retried up to --retryCount times, pausing --retrySeconds seconds between attempts.

1.8.2.2 Parameters

Parameter Type Required Description
--baseURI URI false The base URI of the repository manager.
--password String true The password for the Nexus user account.
--stagingProfileId String true The staging profile ID.
--user String true The name of the Nexus user account.
--repository String true The staging repository ID.
--directory Path true The directory containing files.
--retrySeconds Long false The number of seconds to wait between retries of failed uploads.
--retryCount Integer false The maximum number of retries of failed uploads.
--quiet Boolean false Only log the start of file uploads - not every status update

Example

1.8.3.1 Example

$ brooklime upload \
--user someone \
--password notarealpassword \
--stagingProfileId c608eebdbad499e5fd3eb6d6 \
--repository example-1001
--directory /tmp/directory

brooklime: com.io7m.brooklime.cmdline.internal.BLCommandUploadToStagingRepository: INFO: [1/3] /tmp/directory/com/example/test/file0.txt: Started upload, attempt 1 of 10
brooklime: com.io7m.brooklime.cmdline.internal.BLCommandUploadToStagingRepository: INFO: [1/3] /tmp/directory/com/example/test/file0.txt: 7 bytes of 7 bytes, 7 bytes/s, 00:00:00.000 remaining
brooklime: com.io7m.brooklime.cmdline.internal.BLCommandUploadToStagingRepository: INFO: [2/3] /tmp/directory/com/example/test/file1.txt: Started upload, attempt 1 of 10
brooklime: com.io7m.brooklime.cmdline.internal.BLCommandUploadToStagingRepository: INFO: [2/3] /tmp/directory/com/example/test/file1.txt: 7 bytes of 7 bytes, 7 bytes/s, 00:00:00.000 remaining
brooklime: com.io7m.brooklime.cmdline.internal.BLCommandUploadToStagingRepository: INFO: [3/3] /tmp/directory/com/example/test/file2.txt: Started upload, attempt 1 of 10
brooklime: com.io7m.brooklime.cmdline.internal.BLCommandUploadToStagingRepository: INFO: [3/3] /tmp/directory/com/example/test/file2.txt: 7 bytes of 7 bytes, 7 bytes/s, 00:00:00.000 remaining

      
1.7. Show
1. Command-Line Interface
1.9. Version
io7m | single-page | multi-page