File tree Expand file tree Collapse file tree 7 files changed +40
-6
lines changed
src/main/java/org/sing_group/compi/core Expand file tree Collapse file tree 7 files changed +40
-6
lines changed Original file line number Diff line number Diff line change 9
9
<parent >
10
10
<groupId >org.sing_group</groupId >
11
11
<artifactId >compi</artifactId >
12
- <version >1.5.0 </version >
12
+ <version >1.5.1 </version >
13
13
<!--
14
14
WARNING: change version using (in the parent project):
15
15
mvn versions:set -DnewVersion=[new_version]
Original file line number Diff line number Diff line change 10
10
<parent >
11
11
<groupId >org.sing_group</groupId >
12
12
<artifactId >compi</artifactId >
13
- <version >1.5.0 </version >
13
+ <version >1.5.1 </version >
14
14
<!--
15
15
WARNING: change version using (in the parent project):
16
16
mvn versions:set -DnewVersion=[new_version]
Original file line number Diff line number Diff line change @@ -73,6 +73,10 @@ public Map<String, String> asMap() {
73
73
CONFIGURATION_VARIABLES_PREFIX + "PIPELINE_FILE" ,
74
74
(this .getPipelineFile () == null ) ? "" : this .getPipelineFile ().toString ()
75
75
);
76
+ asMap .put (
77
+ CONFIGURATION_VARIABLES_PREFIX + "PIPELINE_VERSION" ,
78
+ (this .getPipeline () == null ) ? "" : this .getPipeline ().getVersion ().toString ()
79
+ );
76
80
asMap .put (
77
81
CONFIGURATION_VARIABLES_PREFIX + "PARAMS_FILE" ,
78
82
(this .getParamsFile () == null ) ? "" : this .getParamsFile ().toString ()
Original file line number Diff line number Diff line change 9
9
<parent >
10
10
<groupId >org.sing_group</groupId >
11
11
<artifactId >compi</artifactId >
12
- <version >1.5.0 </version >
12
+ <version >1.5.1 </version >
13
13
<!--
14
14
WARNING: change version using (in the parent project):
15
15
mvn versions:set -DnewVersion=[new_version]
Original file line number Diff line number Diff line change @@ -264,7 +264,37 @@ first ``foreach``.
264
264
.. note ::
265
265
It is mandatory that all ``foreach `` tasks have the same number of iterations
266
266
if you want to establish an "iteration dependency" between them.
267
-
267
+
268
+ Environment variables available for tasks
269
+ -----------------------------------------
270
+
271
+ When launching a task, Compi establishes a set of environment variables related with the task
272
+ and the Compi execution itself (i.e. the ``compi run `` command), plus an additional variable
273
+ with the pipeline version (``COMPI_PIPELINE_VERSION ``).
274
+
275
+ The task-related variables are:
276
+
277
+ - ``task_id ``: contains the id of the task being executed.
278
+ - ``task_code ``: contains the code (defined in the ``pipeline.xml ``) of the task being executed.
279
+ - ``task_params ``: contains the list of params associated to the task being executed.
280
+ - ``i ``: in the case of ``foreach `` tasks, the iteration value.
281
+
282
+ The variables related with the Compi execution are:
283
+
284
+ - ``COMPI_PARAMS_FILE ``
285
+ - ``COMPI_DO_NOT_LOG_TASKS ``
286
+ - ``COMPI_UNTIL_TASK ``
287
+ - ``COMPI_MAX_TASKS ``
288
+ - ``COMPI_AFTER_TASKS ``
289
+ - ``COMPI_BEFORE_TASK ``
290
+ - ``COMPI_LOGS_DIR ``
291
+ - ``COMPI_PIPELINE_FILE ``
292
+ - ``COMPI_RUNNERS_FILE ``
293
+ - ``COMPI_FROM_TASKS ``
294
+ - ``COMPI_SINGLE_TASK ``
295
+ - ``COMPI_LOG_ONLY_TASKS ``
296
+ - ``COMPI_SHOW_STD_OUTS ``
297
+ - ``COMPI_OVERWRITE_LOGS ``
268
298
269
299
Defining tasks metadata
270
300
=======================
Original file line number Diff line number Diff line change 9
9
<parent >
10
10
<groupId >org.sing_group</groupId >
11
11
<artifactId >compi</artifactId >
12
- <version >1.5.0 </version >
12
+ <version >1.5.1 </version >
13
13
<!--
14
14
WARNING: change version using (in the parent project):
15
15
mvn versions:set -DnewVersion=[new_version]
Original file line number Diff line number Diff line change 6
6
<groupId >org.sing_group</groupId >
7
7
<artifactId >compi</artifactId >
8
8
<packaging >pom</packaging >
9
- <version >1.5.0 </version >
9
+ <version >1.5.1 </version >
10
10
<!-- WARNING: change version using (in the parent project): mvn versions:set -DnewVersion=[new_version] mvn versions:commit This will change the version
11
11
in all modules at-once -->
12
12
You can’t perform that action at this time.
0 commit comments