diff --git a/.gitlab/generate-appsec.php b/.gitlab/generate-appsec.php index c948df3ba9c..bf9b2de6344 100644 --- a/.gitlab/generate-appsec.php +++ b/.gitlab/generate-appsec.php @@ -125,7 +125,7 @@ after_script: - mkdir -p "${CI_PROJECT_DIR}/artifacts" - find appsec/tests/integration/build/test-results -name "*.xml" -exec cp --parents '{}' "${CI_PROJECT_DIR}/artifacts/" \; - - .gitlab/upload-junit-to-datadog.sh "test.source.file:appsec" + - .gitlab/upload-junit-to-datadog.sh "test.source.file:appsec/" artifacts: reports: junit: "artifacts/**/test-results/**/TEST-*.xml" @@ -345,7 +345,7 @@ - mkdir -p "${CI_PROJECT_DIR}/artifacts" - find appsec/tests/integration/build/test-results -name "*.xml" -exec cp --parents '{}' "${CI_PROJECT_DIR}/artifacts/" \; || true - cp -r appsec/tests/integration/build/test-logs "${CI_PROJECT_DIR}/artifacts/" 2>/dev/null || true - - .gitlab/silent-upload-junit-to-datadog.sh "test.source.file:appsec" + - .gitlab/silent-upload-junit-to-datadog.sh "test.source.file:appsec/" artifacts: reports: junit: "artifacts/**/test-results/**/TEST-*.xml" diff --git a/.gitlab/generate-profiler.php b/.gitlab/generate-profiler.php index 50e38e6761d..0ed90db7330 100644 --- a/.gitlab/generate-profiler.php +++ b/.gitlab/generate-profiler.php @@ -68,7 +68,7 @@ after_script: - | if [ "${IMAGE_SUFFIX}" != "_centos-7" ]; then - .gitlab/silent-upload-junit-to-datadog.sh "test.source.file:profiling" + .gitlab/silent-upload-junit-to-datadog.sh "test.source.file:profiling/" else echo "Skipping JUnit upload on CentOS 7 (old glibc/OpenSSL incompatible with datadog-ci)" fi diff --git a/.gitlab/generate-tracer.php b/.gitlab/generate-tracer.php index acefb647380..c69bd108cfb 100644 --- a/.gitlab/generate-tracer.php +++ b/.gitlab/generate-tracer.php @@ -23,7 +23,7 @@ function after_script($execute_dir = ".", $has_test_agent = false) { - .gitlab/check_test_agent.sh - .gitlab/collect_artifacts.sh "" - - .gitlab/silent-upload-junit-to-datadog.sh "test.source.file:src" + - .gitlab/silent-upload-junit-to-datadog.sh "test.source.file:src/" /dev/null; then # Alpine Linux is_alpine=true echo "Using apk package manager..." - apk add --no-cache curl jq nodejs npm unzip || { + apk add --no-cache curl jq libxslt nodejs npm unzip || { echo "Warning: Failed to install dependencies. Skipping JUnit upload." >&2 exit 0 }