From 9942716be6d86819527ba11398545f191762c3f0 Mon Sep 17 00:00:00 2001 From: Miguel Prada <miguel.prada@tecnalia.com> Date: Fri, 14 Jul 2023 09:12:13 +0200 Subject: [PATCH] Extend possibility to pull scripts from custom branches to all scripts in templates --- ci-templates/industrial-ci-templates.yml | 3 ++- ci-templates/syntax-check.yml | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ci-templates/industrial-ci-templates.yml b/ci-templates/industrial-ci-templates.yml index d959da1..6dad8ca 100644 --- a/ci-templates/industrial-ci-templates.yml +++ b/ci-templates/industrial-ci-templates.yml @@ -10,7 +10,8 @@ DOCKER_IMAGE: "${ARTIFACT_DOCKER_URL}/flexbotics-base-devel:${ROS_DISTRO}" ADDITIONAL_DEBS: curl PARALLEL_BUILDS: 2 # keep this for now, since there seems to be memory limit issues in the ci VM - AFTER_SETUP_TARGET_WORKSPACE: "rosenv && bash <(curl -Ls https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/master/scripts/ci_run_entry_points.sh) $$current_ws" + GITLAB_TEMPLATES_BRANCH: master + AFTER_SETUP_TARGET_WORKSPACE: "rosenv && bash <(curl -Ls https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/${GITLAB_TEMPLATES_BRANCH}/scripts/ci_run_entry_points.sh) $$current_ws" CMAKE_ARGS: -DCMAKE_CXX_FLAGS=-Wno-ignored-attributes -Wno-int-in-bool-context diff --git a/ci-templates/syntax-check.yml b/ci-templates/syntax-check.yml index 4ecbab1..53bc403 100644 --- a/ci-templates/syntax-check.yml +++ b/ci-templates/syntax-check.yml @@ -7,12 +7,13 @@ clang_format: before_script: - apk add --update bash coreutils tar wget - git clone --quiet --depth 1 https://github.com/ros-industrial/industrial_ci.git .ci_config -b legacy - - wget https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/master/clang-format -O .clang-format + - wget https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/${GITLAB_TEMPLATES_BRANCH}/clang-format -O .clang-format script: .ci_config/gitlab.sh variables: ROS_DISTRO: kinetic CLANG_FORMAT_CHECK: file CLANG_FORMAT_VERSION: "3.8" + GITLAB_TEMPLATES_BRANCH: master when: always ########################################################## @@ -77,8 +78,10 @@ file_syntax: adoc_syntax: stage: .post image: tecnalia-docker-dev.artifact.tecnalia.com/alpine + variables: + GITLAB_TEMPLATES_BRANCH: master before_script: - apk add --update curl asciidoctor bash script: - - curl -Ls https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/master/scripts/asciidoctor_syntax_check.bash | bash -s -- . + - curl -Ls https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/${GITLAB_TEMPLATES_BRANCH}/scripts/asciidoctor_syntax_check.bash | bash -s -- . when: always -- GitLab