From 27f3d26313b87efdb34a2eb986c916fc6131123f Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 18 Sep 2019 08:53:15 +0200 Subject: [PATCH] Add horizon to translation jobs The translation jobs check out horizon directly, let's add it to required-projects instead so that we can use the on-disk copy. Pass the location of the horizon directory to the scripts. Needed-By: https://review.opendev.org/682809 Change-Id: If56a3f4c6a20414fdacb5c6395e9f0efd7eb8395 --- playbooks/translation/propose-translation-update.yaml | 2 +- playbooks/translation/upstream-translation-update.yaml | 2 +- zuul.d/jobs.yaml | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/playbooks/translation/propose-translation-update.yaml b/playbooks/translation/propose-translation-update.yaml index 43135dae64..26f6594923 100644 --- a/playbooks/translation/propose-translation-update.yaml +++ b/playbooks/translation/propose-translation-update.yaml @@ -5,6 +5,6 @@ tasks: - name: Run propose_translation_update.sh script - command: "{{ ansible_user_dir }}/scripts/propose_translation_update.sh {{ zuul.project.short_name }} {{ zuul.branch }} {{ zuul.job }}" + command: "{{ ansible_user_dir }}/scripts/propose_translation_update.sh {{ zuul.project.short_name }} {{ zuul.branch }} {{ zuul.job }} {{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/horizon'].src_dir }}" args: chdir: "{{ zuul.project.src_dir }}" diff --git a/playbooks/translation/upstream-translation-update.yaml b/playbooks/translation/upstream-translation-update.yaml index db0bc4e8b1..30b43bf765 100644 --- a/playbooks/translation/upstream-translation-update.yaml +++ b/playbooks/translation/upstream-translation-update.yaml @@ -5,7 +5,7 @@ tasks: - name: Run upstream_translation_update.sh script - command: "{{ ansible_user_dir }}/scripts/upstream_translation_update.sh {{ zuul.project.short_name }} {{ zuul.job }} {{zuul.branch}}" + command: "{{ ansible_user_dir }}/scripts/upstream_translation_update.sh {{ zuul.project.short_name }} {{ zuul.job }} {{zuul.branch}} {{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/horizon'].src_dir }}" args: chdir: "{{ zuul.project.src_dir }}" diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index 75ffcfecbe..11e1f98250 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -1270,6 +1270,7 @@ fileserver_leading_path: translation-source constraints_file: '{{ ansible_user_dir }}/src/opendev.org/openstack/requirements/upper-constraints.txt' required-projects: + - openstack/horizon - openstack/requirements # Zanata-cli needs Java 8 and will fail with newer Java, Bionic uses Java 11 # This fails Zanata up to version 4.6.2 (current release in March 2019). @@ -1295,6 +1296,7 @@ semaphore: translations protected: true required-projects: + - openstack/horizon - openstack/requirements # Zanata-cli needs Java 8 and will fail with newer Java, Bionic uses Java 11 # This fails Zanata up to version 4.6.2 (current release in March 2019).