Skip to content

Commit 58089f3

Browse files
Show link to datadog CI app in test results (#8861)
1 parent 8fc90d5 commit 58089f3

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,8 @@ muzzle-dep-report:
414414
- .circleci/collect_results.sh
415415
- .circleci/upload_ciapp.sh tests $testJvm
416416
- gitlab_section_end "collect-reports"
417+
- URL_ENCODED_JOB_NAME=$(jq -rn --arg x "$CI_JOB_NAME" '$x|@uri')
418+
- 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"
417419
artifacts:
418420
when: always
419421
paths:

.gitlab/gitlab-utils.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,13 @@ function gitlab_section_end () {
1515

1616
echo -e "section_end:`date +%s`:${section_title}\r\e[0K"
1717
}
18+
19+
# A subset of ansi color/formatting codes https://misc.flogisoft.com/bash/tip_colors_and_formatting
20+
export TEXT_RED="\e[31m"
21+
export TEXT_GREEN="\e[32m"
22+
export TEXT_YELLOW="\e[33m"
23+
export TEXT_BLUE="\e[34m"
24+
export TEXT_MAGENTA="\e[35m"
25+
export TEXT_CYAN="\e[36m"
26+
export TEXT_CLEAR="\e[0m"
27+
export TEXT_BOLD="\e[1m"

0 commit comments

Comments
 (0)