From aa6fa836ae27f243a6d97ee5ed9c9f15f8bc65ff Mon Sep 17 00:00:00 2001 From: reqwizz Date: Mon, 4 Nov 2024 19:04:39 +0300 Subject: [PATCH] fix jenkinsfile --- ansible/Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible/Jenkinsfile b/ansible/Jenkinsfile index 934ca9c..958cc8b 100644 --- a/ansible/Jenkinsfile +++ b/ansible/Jenkinsfile @@ -51,11 +51,11 @@ pipeline { def sanitized_content = params.ADDITIONAL_CONTENT.replaceAll("'", "\\'").replaceAll('"', '\\"') if (params.SITE_OPTION == 'SiteA') { - sh "export PATH=/usr/local/bin:\$PATH && ansible-playbook /coursework/ansible/playbook.yml -i ${env.HOSTS_FILE} -l SiteA -e \"additional_content='${sanitized_content}'\"" + sh "export PATH=/usr/local/bin:\$PATH && ansible-playbook /ansible/playbook.yml -i ${env.HOSTS_FILE} -l SiteA -e \"additional_content='${sanitized_content}'\"" } else if (params.SITE_OPTION == 'SiteB') { - sh "export PATH=/usr/local/bin:\$PATH && ansible-playbook /coursework/ansible/playbook.yml -i ${env.HOSTS_FILE} -l SiteB -e \"additional_content='${sanitized_content}'\"" + sh "export PATH=/usr/local/bin:\$PATH && ansible-playbook /ansible/playbook.yml -i ${env.HOSTS_FILE} -l SiteB -e \"additional_content='${sanitized_content}'\"" } else if (params.SITE_OPTION == 'SiteA&B') { - sh "export PATH=/usr/local/bin:\$PATH && ansible-playbook /coursework/ansible/playbook.yml -i ${env.HOSTS_FILE} -l SiteA,SiteB,proxy -e \"additional_content='${sanitized_content}'\"" + sh "export PATH=/usr/local/bin:\$PATH && ansible-playbook /ansible/playbook.yml -i ${env.HOSTS_FILE} -l SiteA,SiteB,proxy -e \"additional_content='${sanitized_content}'\"" } } }