pipeforge 1.1.0__tar.gz → 1.2.0__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.
- {pipeforge-1.1.0 → pipeforge-1.2.0}/PKG-INFO +1 -1
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/__main__.py +6 -3
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/_internal/params.py +7 -6
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pyproject.toml +1 -1
- {pipeforge-1.1.0 → pipeforge-1.2.0}/LICENSE +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/README.md +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/__init__.py +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/_internal/__init__.py +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/_internal/core_loop.py +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/_internal/database.py +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/_internal/drawing.py +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/_internal/file_loader.py +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/_internal/inspector.py +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/_internal/pipeline.py +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/_internal/script.py +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/_internal/utils.py +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/hello_jenkins.toml +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/hello_world.toml +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/merge_pull_request.toml +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/multi_pipeline.toml +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/multi_pipeline_2.toml +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/nightly.toml +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/retries.toml +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/scripts/hello_world__get_purpose_in_life.py +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/scripts/hello_world__print_summary.py +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/scripts/hello_world__repeat_purpose.py +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/scripts/retry.py +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/scripts/timeout.py +0 -0
- {pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/timeout.toml +0 -0
|
@@ -62,8 +62,9 @@ def print_help():
|
|
|
62
62
|
print("")
|
|
63
63
|
print(" There are a series of environment variables that affect this mode's behavior:")
|
|
64
64
|
print("")
|
|
65
|
-
print(" * PIPEFORGERUNNER_LOG_LEVEL
|
|
66
|
-
print(" *
|
|
65
|
+
print(" * PIPEFORGERUNNER_LOG_LEVEL : Can be 'NORMAL', 'DEBUG' or 'SHY'")
|
|
66
|
+
print(" * PIPEFORGERUNNER_LOG_TIMESTAMP_DISABLED : Set to disable timestamps in logs")
|
|
67
|
+
print(" * PIPEFORGERUNNER_HEARTBEAT_SECONDS : Time between each core loop iteration")
|
|
67
68
|
print("")
|
|
68
69
|
print("")
|
|
69
70
|
print("> Use case #2: Print an example of a *.{json,toml} file")
|
|
@@ -124,7 +125,9 @@ if subcommand == "run":
|
|
|
124
125
|
print(f"File not found: {input_file}")
|
|
125
126
|
sys.exit(-1)
|
|
126
127
|
|
|
127
|
-
utils.log_configure(
|
|
128
|
+
utils.log_configure(
|
|
129
|
+
os.getenv("PIPEFORGERUNNER_LOG_LEVEL", "NORMAL"),
|
|
130
|
+
include_timestamp=("PIPEFORGERUNNER_LOG_TIMESTAMP_DISABLED" not in os.environ))
|
|
128
131
|
|
|
129
132
|
p = pipeline.Pipeline(database_url, input_file)
|
|
130
133
|
|
|
@@ -121,28 +121,29 @@ class JobParams():
|
|
|
121
121
|
Example:
|
|
122
122
|
|
|
123
123
|
>>> jp = JobParams(...)
|
|
124
|
-
>>> jp.
|
|
124
|
+
>>> jp.set_output_parameters_and_values({"result" : "OK", "executed_tests" : "11"})
|
|
125
125
|
|
|
126
126
|
However, it is also possible to call it several times, providing only a subset of all the
|
|
127
127
|
(key, value) pairs each time.
|
|
128
128
|
|
|
129
129
|
>>> jp = JobParams(...)
|
|
130
|
-
>>> jp.
|
|
130
|
+
>>> jp.set_output_parameters_and_values({"result" : "OK"})
|
|
131
131
|
>>> ...
|
|
132
|
-
>>> jp.
|
|
132
|
+
>>> jp.set_output_parameters_and_values({"executed_tests" : "11"})
|
|
133
133
|
|
|
134
134
|
In case of one value being provided in more than one call, the last one will prevail:
|
|
135
135
|
|
|
136
136
|
>>> jp = JobParams(...)
|
|
137
|
-
>>> jp.
|
|
137
|
+
>>> jp.set_output_parameters_and_values({"result" : "OK"})
|
|
138
138
|
>>> ...
|
|
139
|
-
>>> jp.
|
|
139
|
+
>>> jp.set_output_parameters_and_values({"executed_tests" : "11"})
|
|
140
140
|
>>> ...
|
|
141
|
-
>>> jp.
|
|
141
|
+
>>> jp.set_output_parameters_and_values({"result" : "KO"}) <---------- This is the "good" one now.
|
|
142
142
|
"""
|
|
143
143
|
|
|
144
144
|
aux = self._job.output.copy()
|
|
145
145
|
aux.update(new_output_dictionary)
|
|
146
146
|
|
|
147
147
|
self._job.update(set__output=aux)
|
|
148
|
+
self._job.reload()
|
|
148
149
|
|
|
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
|
{pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/scripts/hello_world__get_purpose_in_life.py
RENAMED
|
File without changes
|
{pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/scripts/hello_world__print_summary.py
RENAMED
|
File without changes
|
{pipeforge-1.1.0 → pipeforge-1.2.0}/pipeforge/examples/scripts/hello_world__repeat_purpose.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|