Skip to content

Commit f19b3dc

Browse files
Use CACHE_TYPE to mark tests (#8901)
1 parent d8d6af0 commit f19b3dc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.circleci/upload_ciapp.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
SERVICE_NAME="dd-trace-java"
3-
PIPELINE_STAGE=$1
3+
CACHE_TYPE=$1
44
TEST_JVM=$2
55

66
# JAVA_???_HOME are set in the base image for each used JDK https://github.com/DataDog/dd-trace-java-docker-build/blob/master/Dockerfile#L86
@@ -23,7 +23,7 @@ junit_upload() {
2323
DD_API_KEY=$1 \
2424
datadog-ci junit upload --service $SERVICE_NAME \
2525
--logs \
26-
--tags "test.traits:{\"marker\":[\"$PIPELINE_STAGE\"]}" \
26+
--tags "test.traits:{\"category\":[\"$CACHE_TYPE\"]}" \
2727
--tags "runtime.name:$(java_prop java.runtime.name)" \
2828
--tags "runtime.vendor:$(java_prop java.vendor)" \
2929
--tags "runtime.version:$(java_prop java.version)" \

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ muzzle-dep-report:
406406
- .circleci/collect_reports.sh
407407
- if [ "$PROFILE_TESTS" == "true" ]; then .circleci/collect_profiles.sh; fi
408408
- .circleci/collect_results.sh
409-
- .circleci/upload_ciapp.sh tests $testJvm
409+
- .circleci/upload_ciapp.sh $CACHE_TYPE $testJvm
410410
- gitlab_section_end "collect-reports"
411411
- URL_ENCODED_JOB_NAME=$(jq -rn --arg x "$CI_JOB_NAME" '$x|@uri')
412412
- echo -e "${TEXT_BOLD}${TEXT_YELLOW}See test results in Datadog:${TEXT_CLEAR} https://app.datadoghq.com/ci/test/runs?query=test_level%3Atest%20%40test.service%3Add-trace-java%20%40ci.pipeline.id%3A${CI_PIPELINE_ID}%20%40ci.job.name%3A%22${URL_ENCODED_JOB_NAME}%22"

0 commit comments

Comments
 (0)