generate_upload_schema

ci_watson.artifactory_helpers.generate_upload_schema(pattern, target, testname, recursive=False)[source]

Write out JSON file to upload Jenkins results from test to Artifactory storage area.

This function relies on the JFROG JSON schema for uploading data into artifactory using the Jenkins plugin. Docs can be found at https://www.jfrog.com/confluence/display/RTF/Using+File+Specs

Parameters:
patternstr or list of strings

Specifies the local file system path to test results which should be uploaded to Artifactory. You can specify multiple artifacts by using wildcards or a regular expression as designated by the regexp property.

targetstr

Specifies the target path in Artifactory in the following format:

[repository_name]/[repository_path]
testnamestr

Name of test that generate the results. This will be used to create the name of the JSON file to enable these results to be uploaded to Artifactory.

recursivebool, optional

Specify whether or not to identify files listed in sub-directories for uploading. Default: False