Commit 84d64f46 authored by Mohamed Khalil Labidi's avatar Mohamed Khalil Labidi
Browse files

Merge branch 'ip-collect' into 'proactive-dev'

Fix ip addresses collection for env vars preparation

See merge request !115
parents 18b3dd54 3a13dc59
...@@ -1439,6 +1439,8 @@ public class PAGateway { ...@@ -1439,6 +1439,8 @@ public class PAGateway {
} }
} else if (!task.getParentTasks().isEmpty()) { } else if (!task.getParentTasks().isEmpty()) {
prepareInfraTask = PAFactory.createBashScriptTaskFromFile(taskName, "prepare_infra_script.sh"); prepareInfraTask = PAFactory.createBashScriptTaskFromFile(taskName, "prepare_infra_script.sh");
prepareInfraTask.setPostScript(PAFactory.createSimpleScript(
Utils.getContentWithFileName("collect_ip_addr_results.groovy"), "groovy"));
//TODO: Taking into consideration multiple parent tasks with multiple communications //TODO: Taking into consideration multiple parent tasks with multiple communications
taskVariablesMap.put("requestedPortName", new TaskVariable("requestedPortName", taskVariablesMap.put("requestedPortName", new TaskVariable("requestedPortName",
job.findTask(task.getParentTasks().get(0)).getPortsToOpen().get(0).getRequestedName())); job.findTask(task.getParentTasks().get(0)).getPortsToOpen().get(0).getRequestedName()));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment