]> source.dussan.org Git - sonarqube.git/commitdiff
[NO JIRA] Exclude test from Mend scan
authorMathieu Suen <mathieu.suen@sonarsource.com>
Wed, 25 Jan 2023 13:35:51 +0000 (14:35 +0100)
committersonartech <sonartech@sonarsource.com>
Wed, 28 Jun 2023 20:03:01 +0000 (20:03 +0000)
.cirrus.yml
wss-unified-agent.config

index 9c2d7a55b830467a537acbb820e22a590c3f047d..a7c156ca6de2eba80952dd9e3b00768bf8992848 100644 (file)
@@ -751,12 +751,11 @@ upgd_oracle21_task:
     - ./private/cirrus/cirrus-qa.sh oracle21
   <<: *DEFAULT_ARTIFACTS_TEMPLATE
 
-ws_scan_task:
+mend_scan_task:
   <<: *DEFAULT_TEMPLATE
   <<: *BUILD_DEPENDANT_TASK_TEMPLATE
   only_if: >-
-    $CIRRUS_BRANCH == $BRANCH_MAIN ||
-    ($CIRRUS_BRANCH =~ $BRANCH_PATTERN_MAINTENANCE && $CIRRUS_BRANCH != $BRANCH_NIGHTLY)
+    $CIRRUS_BRANCH == $BRANCH_MAIN || ($CIRRUS_BRANCH =~ $BRANCH_PATTERN_MAINTENANCE && $CIRRUS_BRANCH != $BRANCH_NIGHTLY)
   <<: *YARN_CACHE_TEMPLATE
   <<: *GRADLE_CACHE_TEMPLATE
   timeout_in: 30m
@@ -769,12 +768,12 @@ ws_scan_task:
     WS_WSS_URL: VAULT[development/kv/data/mend data.url]
     WS_USERKEY: VAULT[development/kv/data/mend data.userKey]
     SLACK_WEBHOOK_SQ: VAULT[development/kv/data/slack data.webhook]
-  whitesource_script:
-    - ./private/cirrus/cirrus-whitesource-scan.sh
+  mend_script:
+    - ./private/cirrus/cirrus-mend-scan.sh
   allow_failures: "true"
   on_failure:
     slack_notification_script:
-      - ./private/cirrus/cirrus-whitesource-notifications.sh
+      - ./private/cirrus/cirrus-mend-notifications.sh
   always:
     ws_artifacts:
       path: "whitesource/**/*"
index b51650e3283e6302d9913b734a8f335c19bd1590..1b8848573b20e0547753e9dce3682a96df299592 100644 (file)
@@ -1,4 +1,4 @@
-# WhiteSource documentation https://whitesource.atlassian.net/wiki/spaces/WD/pages/1544880156/Unified+Agent+Configuration+Parameters
+# Mend documentation https://docs.mend.io/bundle/unified_agent/page/unified_agent_configuration_parameters.html
 
 excludes=**/*it-* **/*test*
 includes=**/*.java **/*.js **/*.ts
@@ -8,8 +8,8 @@ gradle.resolveDependencies=True
 gradle.aggregateModules=True
 gradle.preferredEnvironment=wrapper
 gradle.innerModulesAsDependencies=True
-gradle.ignoredConfigurations=.*it.*
-gradle.excludeModules=.*it.*
+gradle.ignoredConfigurations=.*test.*
+gradle.excludeModules=.*it-.* .*ut-monitoring.* .*sonar-ws-generator.* .*sonar-testing-ldap.* .*sonar-testing-harness.*
 
 npm.includeDevDependencies=False
 npm.resolveDependencies=True