From f1b3dc73029ec869f3d406f47ad04fb63512c25a Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Sun, 13 Oct 2019 13:34:05 -0700 Subject: [PATCH] Use global_artifacts anchor --- .gitlab-ci.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 90ff85a..35597ae 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,17 @@ variables: PACKAGES_LIST: tracetools_analysis base_image_id: registry.gitlab.com/micro-ros/ros_tracing/ci_base +.global_artifacts: &global_artifacts + artifacts: + paths: + - install + - build/*/test_results/*/*.xunit.xml + - build/*/pytest.xml + reports: + junit: + - build/*/test_results/*/*.xunit.xml + - build/*/pytest.xml + build: image: $base_image_id before_script: @@ -13,12 +24,4 @@ build: - . install/local_setup.sh - colcon test --packages-select $PACKAGES_LIST - colcon test-result --all - artifacts: - paths: - - install - - build/*/test_results/*/*.xunit.xml - - build/*/pytest.xml - reports: - junit: - - build/*/test_results/*/*.xunit.xml - - build/*/pytest.xml + <<: *global_artifacts