Skip to content

Commit

Permalink
Adds task_after to tasks environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
hlfernandez committed Sep 2, 2022
1 parent b17920d commit 09968c9
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>org.sing_group</groupId>
<artifactId>compi</artifactId>
<version>1.5.1</version>
<version>1.5.2</version>
<!--
WARNING: change version using (in the parent project):
mvn versions:set -DnewVersion=[new_version]
Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<parent>
<groupId>org.sing_group</groupId>
<artifactId>compi</artifactId>
<version>1.5.1</version>
<version>1.5.2</version>
<!--
WARNING: change version using (in the parent project):
mvn versions:set -DnewVersion=[new_version]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public void iterateOverAllVariablesForTask(Task task, BiConsumer<String, String>
params.add(((Foreach) task).getAs());
}
runnerExtraVariables.put("task_params", params.stream().collect(joining(" ")));
runnerExtraVariables.put("task_after", task.getAfterList().stream().collect(joining(" ")));

runnerExtraVariables.forEach(consumer);

Expand Down
2 changes: 1 addition & 1 deletion dk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>org.sing_group</groupId>
<artifactId>compi</artifactId>
<version>1.5.1</version>
<version>1.5.2</version>
<!--
WARNING: change version using (in the parent project):
mvn versions:set -DnewVersion=[new_version]
Expand Down
1 change: 1 addition & 0 deletions docs/source/writing_pipelines.rst
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ The task-related variables are:
- ``task_id``: contains the id of the task being executed.
- ``task_code``: contains the code (defined in the ``pipeline.xml``) of the task being executed.
- ``task_params``: contains the list of params associated to the task being executed.
- ``task_after``: contains the list of tasks that goes before the task being executed.
- ``i``: in the case of ``foreach`` tasks, the iteration value.

The variables related with the Compi execution are:
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>org.sing_group</groupId>
<artifactId>compi</artifactId>
<version>1.5.1</version>
<version>1.5.2</version>
<!--
WARNING: change version using (in the parent project):
mvn versions:set -DnewVersion=[new_version]
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<groupId>org.sing_group</groupId>
<artifactId>compi</artifactId>
<packaging>pom</packaging>
<version>1.5.1</version>
<version>1.5.2</version>
<!-- WARNING: change version using (in the parent project): mvn versions:set -DnewVersion=[new_version] mvn versions:commit This will change the version
in all modules at-once -->

Expand Down

0 comments on commit 09968c9

Please sign in to comment.