From f99ad5a0503be3820f59da0aa9aabf83da803568 Mon Sep 17 00:00:00 2001 From: Alban Auzeill Date: Tue, 15 Oct 2024 10:22:51 +0200 Subject: [PATCH] [NO JIRA] Fix Autoscan result, it was wrong in the CI because of the missing tests compilation (#4902) --- .cirrus.yml | 2 +- its/autoscan/src/test/resources/autoscan/diffs/diff_S5786.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 3724668a17..8de1961543 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -260,7 +260,7 @@ autoscan_task: - source cirrus-env QA - source set_maven_build_version $BUILD_NUMBER - cd java-checks-test-sources - - JAVA_HOME="${JAVA_LATEST_HOME}" mvn clean compile --batch-mode + - JAVA_HOME="${JAVA_LATEST_HOME}" mvn clean compile test-compile --batch-mode - cd ../its/autoscan - mvn clean package --batch-mode --errors --show-version --activate-profiles it-autoscan -Dsonar.runtimeVersion=LATEST_RELEASE[10.3] -Dmaven.test.redirectTestOutputToFile=false -Dparallel=methods -DuseUnlimitedThreads=true cleanup_before_cache_script: cleanup_maven_repository diff --git a/its/autoscan/src/test/resources/autoscan/diffs/diff_S5786.json b/its/autoscan/src/test/resources/autoscan/diffs/diff_S5786.json index 0f6b9555e7..2f3eda238a 100644 --- a/its/autoscan/src/test/resources/autoscan/diffs/diff_S5786.json +++ b/its/autoscan/src/test/resources/autoscan/diffs/diff_S5786.json @@ -1,6 +1,6 @@ { "ruleKey": "S5786", "hasTruePositives": true, - "falseNegatives": 62, + "falseNegatives": 63, "falsePositives": 0 }