generate_upload_params#
- ci_watson.artifactory_helpers.generate_upload_params(results_root, updated_outputs, verbose=True)[source]#
Generate pattern, target, and test name for
generate_upload_schema().This uses
BUILD_TAGandBUILD_MATRIX_SUFFIXon CI to create meaningful Artifactory target path. They are optional for local runs. Other attributes like user, time stamp, and test name are also automatically determined.In addition to renamed outputs,
*.log``is also inserted into the ``schema_pattern.- Parameters:
- results_rootstr
See
compare_outputs()for more info.- updated_outputslist
List containing tuples of
(actual, desired)of failed test output comparison to be processed.- verbosebool
Print extra info to screen.
- Returns:
- schema_pattern, tree, testname
Analogous to
pattern,target, andtestnamethat are passed intogenerate_upload_schema(), respectively.