Skip to content

Commit 09968c9

Browse files
committed
Adds task_after to tasks environment variables
1 parent b17920d commit 09968c9

File tree

7 files changed

+7
-5
lines changed

7 files changed

+7
-5
lines changed

cli/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<parent>
1010
<groupId>org.sing_group</groupId>
1111
<artifactId>compi</artifactId>
12-
<version>1.5.1</version>
12+
<version>1.5.2</version>
1313
<!--
1414
WARNING: change version using (in the parent project):
1515
mvn versions:set -DnewVersion=[new_version]

core/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<parent>
1111
<groupId>org.sing_group</groupId>
1212
<artifactId>compi</artifactId>
13-
<version>1.5.1</version>
13+
<version>1.5.2</version>
1414
<!--
1515
WARNING: change version using (in the parent project):
1616
mvn versions:set -DnewVersion=[new_version]

core/src/main/java/org/sing_group/compi/core/resolver/VariableResolverUtils.java

+1
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ public void iterateOverAllVariablesForTask(Task task, BiConsumer<String, String>
8080
params.add(((Foreach) task).getAs());
8181
}
8282
runnerExtraVariables.put("task_params", params.stream().collect(joining(" ")));
83+
runnerExtraVariables.put("task_after", task.getAfterList().stream().collect(joining(" ")));
8384

8485
runnerExtraVariables.forEach(consumer);
8586

dk/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<parent>
1010
<groupId>org.sing_group</groupId>
1111
<artifactId>compi</artifactId>
12-
<version>1.5.1</version>
12+
<version>1.5.2</version>
1313
<!--
1414
WARNING: change version using (in the parent project):
1515
mvn versions:set -DnewVersion=[new_version]

docs/source/writing_pipelines.rst

+1
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,7 @@ The task-related variables are:
277277
- ``task_id``: contains the id of the task being executed.
278278
- ``task_code``: contains the code (defined in the ``pipeline.xml``) of the task being executed.
279279
- ``task_params``: contains the list of params associated to the task being executed.
280+
- ``task_after``: contains the list of tasks that goes before the task being executed.
280281
- ``i``: in the case of ``foreach`` tasks, the iteration value.
281282

282283
The variables related with the Compi execution are:

e2e-tests/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<parent>
1010
<groupId>org.sing_group</groupId>
1111
<artifactId>compi</artifactId>
12-
<version>1.5.1</version>
12+
<version>1.5.2</version>
1313
<!--
1414
WARNING: change version using (in the parent project):
1515
mvn versions:set -DnewVersion=[new_version]

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<groupId>org.sing_group</groupId>
77
<artifactId>compi</artifactId>
88
<packaging>pom</packaging>
9-
<version>1.5.1</version>
9+
<version>1.5.2</version>
1010
<!-- WARNING: change version using (in the parent project): mvn versions:set -DnewVersion=[new_version] mvn versions:commit This will change the version
1111
in all modules at-once -->
1212

0 commit comments

Comments
 (0)