gitlab-ci: Always name artifacts archive after the job producing it

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>
This commit is contained in:
Michel Dänzer
2020-03-06 12:35:17 +01:00
committed by Michel Dänzer
parent 20c09c9c06
commit 0103f02acb
2 changed files with 5 additions and 2 deletions

View File

@@ -77,6 +77,7 @@ success:
.ci-deqp-artifacts: .ci-deqp-artifacts:
artifacts: artifacts:
name: "mesa_${CI_JOB_NAME}"
when: always when: always
untracked: false untracked: false
paths: paths:
@@ -189,6 +190,7 @@ arm_test:
.build-common: .build-common:
extends: .ci-run-policy extends: .ci-run-policy
artifacts: artifacts:
name: "mesa_${CI_JOB_NAME}"
when: always when: always
paths: paths:
- _build/meson-logs/*.txt - _build/meson-logs/*.txt
@@ -538,7 +540,7 @@ scons-old-llvm:
- LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \; - LD_LIBRARY_PATH=install/lib find install/lib -name "*.so" -print -exec ldd {} \;
artifacts: artifacts:
when: always when: always
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME" name: "mesa_${CI_JOB_NAME}"
paths: paths:
- results/ - results/
dependencies: dependencies:
@@ -569,7 +571,7 @@ scons-old-llvm:
stage: llvmpipe stage: llvmpipe
artifacts: artifacts:
when: on_failure when: on_failure
name: "$CI_JOB_NAME-$CI_COMMIT_REF_NAME" name: "mesa_${CI_JOB_NAME}"
paths: paths:
- summary/ - summary/
variables: variables:

View File

@@ -33,6 +33,7 @@
- echo $result - echo $result
- '[[ "$result" == "pass" ]]' - '[[ "$result" == "pass" ]]'
artifacts: artifacts:
name: "mesa_${CI_JOB_NAME}"
when: always when: always
paths: paths:
- artifacts/ - artifacts/