diff --git a/.gitlab-industrial-ci-kinetic-no-rosinstall.yml b/.gitlab-industrial-ci-kinetic-no-rosinstall.yml
index bde67fe5757f97ca2d73db3b432b1fca319da2cc..2aa4fc5df238c844832b26d89e9db6a8605b46ac 100644
--- a/.gitlab-industrial-ci-kinetic-no-rosinstall.yml
+++ b/.gitlab-industrial-ci-kinetic-no-rosinstall.yml
@@ -21,7 +21,6 @@ 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
@@ -79,6 +78,8 @@ industrial_ci_kinetic_deploy:
 clang_format:
   extends: .industrial_ci
   stage: postcheck
+  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 f2139622a6368895735d6423edee0465fb40c432..077ef5091dc282b06d2b674f4dc9a3a63cf70b57 100644
--- a/.gitlab-industrial-ci-kinetic-with-rosinstall.yml
+++ b/.gitlab-industrial-ci-kinetic-with-rosinstall.yml
@@ -21,7 +21,6 @@ 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
@@ -81,6 +80,8 @@ industrial_ci_kinetic_deploy:
 clang_format:
   extends: .industrial_ci
   stage: postcheck
+  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