Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -519,9 +519,21 @@ validate_build:
- cp workspace/dd-java-agent/build/libs/*.jar reference-artifacts/
- cp workspace/dd-trace-api/build/libs/*.jar reference-artifacts/
- cp workspace/dd-trace-ot/build/libs/*.jar reference-artifacts/
# Scheduled builds refresh dependency locks before creating the reference artifacts.
# Refresh them here as well so the candidate uses the same dependency resolution.
- if [ $CI_PIPELINE_SOURCE == "schedule" ] ; then ./gradlew resolveAndLockAll --write-locks $GRADLE_ARGS; fi
Comment thread
bric3 marked this conversation as resolved.
- ./gradlew --version
# This will run the shadowJar task and exercise the build cache, allowing to identify build-cache issues
- ./gradlew compareToReferenceJar -PjardiffReferenceDir="$CI_PROJECT_DIR/reference-artifacts" -PskipTests $GRADLE_ARGS
# Keep both JAR sets for direct inspection when the comparison fails.
- |
if ! ./gradlew compareToReferenceJar -PjardiffReferenceDir="$CI_PROJECT_DIR/reference-artifacts" -PskipTests $GRADLE_ARGS; then
mkdir -p check_reports/jar-comparison-artifacts/reference check_reports/jar-comparison-artifacts/candidate
cp reference-artifacts/*.jar check_reports/jar-comparison-artifacts/reference/
cp workspace/dd-java-agent/build/libs/*.jar check_reports/jar-comparison-artifacts/candidate/
cp workspace/dd-trace-api/build/libs/*.jar check_reports/jar-comparison-artifacts/candidate/
cp workspace/dd-trace-ot/build/libs/*.jar check_reports/jar-comparison-artifacts/candidate/
exit 1
fi
after_script:
- source .gitlab/gitlab-utils.sh
- gitlab_section_start "collect-reports" "Collecting reports"
Expand Down