We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90a02ce commit a90ccbcCopy full SHA for a90ccbc
.gitlab/upload_ciapp.sh
@@ -35,5 +35,20 @@ junit_upload() {
35
./results
36
}
37
38
+# Upload code coverage results to Datadog
39
+coverage_upload() {
40
+ DD_API_KEY=$1 \
41
+ [email protected]:DataDog/dd-trace-java.git \
42
+ datadog-ci coverage upload --ignored-paths=./test-published-dependencies .
43
+}
44
+
45
# Upload test results to production environment like all other CI jobs
46
junit_upload "$DATADOG_API_KEY_PROD"
47
+junit_upload_status=$?
48
49
+coverage_upload "$DATADOG_API_KEY_PROD"
50
+coverage_upload_status=$?
51
52
+if [[ $junit_upload_status -ne 0 || $coverage_upload_status -ne 0 ]]; then
53
+ exit 1
54
+fi
0 commit comments