From c4323484a20ed7657dd422410d3a0d5000089eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Wed, 12 Jun 2019 17:25:02 +0200 Subject: [PATCH] Fix jinja error discovered by @sgutierr (RHEL template) --- support/jenkins/jenkins-slave-template-rhel.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/support/jenkins/jenkins-slave-template-rhel.yaml b/support/jenkins/jenkins-slave-template-rhel.yaml index 50ae8a3..83b56dd 100644 --- a/support/jenkins/jenkins-slave-template-rhel.yaml +++ b/support/jenkins/jenkins-slave-template-rhel.yaml @@ -72,6 +72,9 @@ objects: USER root RUN yum install -y --enablerepo=rhel-7-server-ansible-2.6-rpms 'ansible >= 2.6' && \ yum install -y --enablerepo=rhel-server-rhscl-7-rpms python27-python-pip && \ + # Remove the existing jinja2 library and its dependencies before re-installing it + # This is mandatory to prevent any leftover from a previous install + rm -rf /usr/lib/python2.7/site-packages/markupsafe /usr/lib/python2.7/site-packages/jinja2 && \ scl enable python27 "pip install --install-option='--install-purelib=/usr/lib/python2.7/site-packages/' jinja2" && \ yum clean all && \ rm -rf /var/cache/yum && \