From 3d3e4d668156c5f7365de51f7ad440e37040411a Mon Sep 17 00:00:00 2001
From: Miguel Prada <miguel.prada@tecnalia.com>
Date: Mon, 2 Dec 2019 18:08:57 +0100
Subject: [PATCH] Revert "Only clone clang-format config file in relevant job"

This reverts commit 717227726d0bfaf3319385123e28316e021810a6.
---
 .gitlab-industrial-ci-kinetic-no-rosinstall.yml   | 3 +--
 .gitlab-industrial-ci-kinetic-with-rosinstall.yml | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/.gitlab-industrial-ci-kinetic-no-rosinstall.yml b/.gitlab-industrial-ci-kinetic-no-rosinstall.yml
index 32e8605..4c2af65 100644
--- a/.gitlab-industrial-ci-kinetic-no-rosinstall.yml
+++ b/.gitlab-industrial-ci-kinetic-no-rosinstall.yml
@@ -21,6 +21,7 @@ before_script:
     - apk add --update bash coreutils tar
     - git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci.git .ci_config -b legacy
     - docker login ${ARTIFACT_DOCKER_URL} -u ${ARTIFACT_CI_USER} -p ${ARTIFACT_CI_TOKEN}
+    - wget https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/13-add-clang-format-to-the-ci-tests/clang-format -O .clang-format
   script: .ci_config/gitlab.sh
   variables:
     ADDITIONAL_DEBS: curl
@@ -78,8 +79,6 @@ industrial_ci_kinetic_deploy:
 clang_format:
   extends: .industrial_ci
   stage: precheck
-  before_script:
-    - wget https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/13-add-clang-format-to-the-ci-tests/clang-format -O .clang-format
   variables:
     ROS_DISTRO: kinetic
     CLANG_FORMAT_CHECK: file
diff --git a/.gitlab-industrial-ci-kinetic-with-rosinstall.yml b/.gitlab-industrial-ci-kinetic-with-rosinstall.yml
index 7e32656..2a4a464 100644
--- a/.gitlab-industrial-ci-kinetic-with-rosinstall.yml
+++ b/.gitlab-industrial-ci-kinetic-with-rosinstall.yml
@@ -21,6 +21,7 @@ before_script:
     - apk add --update bash coreutils tar
     - git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci.git .ci_config -b legacy
     - docker login ${ARTIFACT_DOCKER_URL} -u ${ARTIFACT_CI_USER} -p ${ARTIFACT_CI_TOKEN}
+    - wget https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/13-add-clang-format-to-the-ci-tests/clang-format -O .clang-format
   script: .ci_config/gitlab.sh
   variables:
     ADDITIONAL_DEBS: curl
@@ -80,8 +81,6 @@ industrial_ci_kinetic_deploy:
 clang_format:
   extends: .industrial_ci
   stage: precheck
-  before_script:
-    - wget https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/13-add-clang-format-to-the-ci-tests/clang-format -O .clang-format
   variables:
     ROS_DISTRO: kinetic
     CLANG_FORMAT_CHECK: file
-- 
GitLab