diff --git a/modules/jenkins/files/slave_scripts/upstream_translation_horizon.sh b/modules/jenkins/files/slave_scripts/upstream_translation_horizon.sh index 5050b22aef..01ecf74c20 100755 --- a/modules/jenkins/files/slave_scripts/upstream_translation_horizon.sh +++ b/modules/jenkins/files/slave_scripts/upstream_translation_horizon.sh @@ -26,8 +26,10 @@ fi git config user.name "OpenStack Jenkins" git config user.email "jenkins@openstack.org" -# initialize transifex client -tx init --host=https://www.transifex.com +# Initialize the transifex client, if there's no .tx directory +if [ ! -d .tx ] ; then + tx init --host=https://www.transifex.com +fi # Horizon JavaScript Translations tx set --auto-local -r ${PROJECT}.${PROJECT}-js-translations \ "${PROJECT}/locale//LC_MESSAGES/djangojs.po" --source-lang en \