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}'\"" } } }