Sharepoint Uploader

Sharepoint Uploader#

The sharepoint cli can be used to upload files or folders to an on-premise Sharepoint instance. For example it could be used for postprocessing the results of an Automated Software Release and upload them to a Sharepoint folder.

Thereby the sharepoint cli provides following commands:

Usage: sharepoint [OPTIONS] COMMAND [ARGS]...

Options:
  --version  Output version information and exit
  --help     Show this message and exit.

Commands:
  upload-files   Upload files to SharePoint.
  upload-folder  Upload a folder to SharePoint.

How-Tos#

Environment Variables#

SHAREPOINT_PROJECT_SITE#

The URL of the Sharepoint instance to upload to. For example https://mycompany.sharepoint.com/sites/my-site (required, string)

SHAREPOINT_USERNAME#

The username to use for authentication. (required, string)

SHAREPOINT_PASSWORD#

The password to use for authentication. (required, string)

SHAREPOINT_FORCE_IP#

This variable is only required in case of a broken DNS configuration. See SHAREPOINT_FETCHER_FORCE_IP for more information. (optional)

LOG_LEVEL#

The log level to use for logging. Possible values are “INFO” and “DEBUG”. If you need to debug your run, set this to “DEBUG”. (optional, default: “INFO”, string)