From a991e1084e98189a5f5cdc807b88cd06c98736c3 Mon Sep 17 00:00:00 2001
From: Harsha <harshavardhanc95@gmail.com>
Date: Fri, 17 Jan 2020 15:43:22 +0530
Subject: [PATCH] Update copy_file_to_wksp.groovy

---
 vars/copy_file_to_wksp.groovy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vars/copy_file_to_wksp.groovy b/vars/copy_file_to_wksp.groovy
index c4c9e7826..64d8625de 100644
--- a/vars/copy_file_to_wksp.groovy
+++ b/vars/copy_file_to_wksp.groovy
@@ -27,8 +27,8 @@ def inputGetFile(Map pipelineParams, String savedfile = null) {
         stage('ansible-run') {
          println pipelineParams
 
-         inventory_path = "${pipelineParams.currentWs}/ansible/inventory/env"
-          sh """
+            inventory_path = "${pipelineParams.currentWs}/ansible/inventory/${pipelineParams.env}/${pipelineParams.module}"
+             sh """
              cp ${pipelineParams.currentWs}/token.xlsx ${pipelineParams.currentWs}/data_input/
                      ansible-playbook -i ${
                  inventory_path
-- 
GitLab