gitlab-ci: Always name artifacts archive after the job producing it
authorMichel Dänzer <mdaenzer@redhat.com>
Fri, 6 Mar 2020 11:35:17 +0000 (12:35 +0100)
committerMichel Dänzer <michel@daenzer.net>
Sat, 7 Mar 2020 10:09:50 +0000 (11:09 +0100)
This will help determine which artifacts generate how much traffic.

v2:
* Add "mesa_" prefix to make it obvious which project the artifacts are
  from.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4085>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4085>

.gitlab-ci.yml
.gitlab-ci/lava-gitlab-ci.yml

index f91830fe3bafb49045bca00d67b9582440b4b7b3..56b9a7606c0d5d7c0dc770661490030390d0c419 100644 (file)
@@ -77,6 +77,7 @@ success:
 
 .ci-deqp-artifacts:
   artifacts:
+    name: "mesa_${CI_JOB_NAME}"
     when: always
     untracked: false
     paths:
@@ -189,6 +190,7 @@ arm_test:
 .build-common:
   extends: .ci-run-policy
   artifacts:
+    name: "mesa_${CI_JOB_NAME}"
     when: always
     paths:
       - _build/meson-logs/*.txt
@@ -538,7 +540,7 @@ scons-old-llvm:
     - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
   artifacts:
     when: always
-    name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
+    name: "mesa_${CI_JOB_NAME}"
     paths:
       - results/
   dependencies:
@@ -569,7 +571,7 @@ scons-old-llvm:
   stage: llvmpipe
   artifacts:
     when: on_failure
-    name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
+    name: "mesa_${CI_JOB_NAME}"
     paths:
       - summary/
   variables:
index 9b254e4579be1c5762680e3a6b55c890a9d720e9..00e960f86e6d0d1e8a7ae5f4aeacc380f643a371 100644 (file)
@@ -33,6 +33,7 @@
     - echo $result
     - '[[ "$result" == "pass" ]]'
   artifacts:
+    name: "mesa_${CI_JOB_NAME}"
     when: always
     paths:
       - artifacts/