diff --git a/vars/copy_file_to_wksp.groovy b/vars/copy_file_to_wksp.groovy index c4c9e7826158d0e2711def8b613cf8603e23e45a..64d8625de82ddfeb0dd65cef9e80e0c120ff0365 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