49d6c92d0c
Avoid repeatedly serializing and splitting the root path component of jobs being added to the list to be processed and returned. Attempting to split a string path using 'job' introduces a bug if a job ever happens to also use the name 'job' as part of its name. This could be fixed by using root.split('/job/') but it still seems hackish. Maintain the root path to the folder in the hierarchy as a list of path components, add to it when descending and store the result of joining it with '/job/' as a separate variable to avoid needing to re-parse. Change-Id: I074ad74ad935c50716141a79822ca84999734c3f |
||
---|---|---|
.. | ||
jobs | ||
__init__.py | ||
base.py | ||
helper.py | ||
test_build.py | ||
test_credential.py | ||
test_info.py | ||
test_jenkins_sockets.py | ||
test_jenkins.py | ||
test_job_folder.py | ||
test_node.py | ||
test_plugins.py | ||
test_promotion.py | ||
test_queue.py | ||
test_quiet_down.py | ||
test_rest_endpoints.py | ||
test_script.py | ||
test_version.py | ||
test_view.py | ||
test_whoami.py |