qubership-pipelines-common-library 0.1.7__tar.gz → 0.1.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/PKG-INFO +1 -1
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/pyproject.toml +1 -1
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/execution/exec_command.py +4 -4
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/utils/utils_context.py +4 -1
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/LICENSE +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/README.md +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/__init__.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/__init__.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/artifactory_client.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/execution/__init__.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/execution/exec_context.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/execution/exec_context_file.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/execution/exec_info.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/execution/exec_logger.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/git_client.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/github_client.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/gitlab_client.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/jenkins_client.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/kube_client.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/log_client.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/minio_client.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/utils/__init__.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/utils/rest.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/utils/utils.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/utils/utils_dictionary.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/utils/utils_file.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/utils/utils_json.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/utils/utils_string.py +0 -0
- {qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/qubership_pipelines_common_library/v1/webex_client.py +0 -0
|
@@ -25,11 +25,11 @@ class ExecutionCommand:
|
|
|
25
25
|
SUCCESS_MSG = "Status: SUCCESS"
|
|
26
26
|
FAILURE_MSG = "Status: FAILURE"
|
|
27
27
|
|
|
28
|
-
def __init__(self, context_path: str = None, input_params: dict = None,
|
|
29
|
-
parent_context_to_reuse: ExecutionContext = None):
|
|
28
|
+
def __init__(self, context_path: str = None, input_params: dict = None, input_params_secure: dict = None,
|
|
29
|
+
folder_path: str = None, parent_context_to_reuse: ExecutionContext = None):
|
|
30
30
|
if not context_path:
|
|
31
|
-
context_path = create_execution_context(input_params=input_params,
|
|
32
|
-
parent_context_to_reuse=parent_context_to_reuse)
|
|
31
|
+
context_path = create_execution_context(input_params=input_params, input_params_secure=input_params_secure,
|
|
32
|
+
folder_path=folder_path, parent_context_to_reuse=parent_context_to_reuse)
|
|
33
33
|
self.context = ExecutionContext(context_path)
|
|
34
34
|
|
|
35
35
|
def run(self):
|
|
@@ -38,9 +38,11 @@ def init_context(context_path):
|
|
|
38
38
|
UtilsFile.write_yaml(context_path, context)
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
def create_execution_context(input_params: dict = None,
|
|
41
|
+
def create_execution_context(input_params: dict = None, input_params_secure: dict = None, folder_path: str = None,
|
|
42
|
+
parent_context_to_reuse: ExecutionContext = None):
|
|
42
43
|
"""params:
|
|
43
44
|
input_params: dict (will be merged into created input params)
|
|
45
|
+
input_params_secure: dict (will be merged into created secure input params)
|
|
44
46
|
folder_path: str (optional, will generate new temp)
|
|
45
47
|
parent_context_to_reuse: ExecutionContext (optional, to propagate existing input params)
|
|
46
48
|
"""
|
|
@@ -71,6 +73,7 @@ def create_execution_context(input_params: dict = None, folder_path: str = None,
|
|
|
71
73
|
|
|
72
74
|
input_params_file.content = recursive_merge(input_params_file.content, input_params)
|
|
73
75
|
input_params_file.save(context_file.get("paths.input.params"))
|
|
76
|
+
input_params_secure_file.content = recursive_merge(input_params_secure_file.content, input_params_secure)
|
|
74
77
|
input_params_secure_file.save(context_file.get("paths.input.params_secure"))
|
|
75
78
|
|
|
76
79
|
ExecutionContextFile().init_params().save(context_file.get("paths.output.params"))
|
{qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/LICENSE
RENAMED
|
File without changes
|
{qubership_pipelines_common_library-0.1.7 → qubership_pipelines_common_library-0.1.8}/README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|