aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Trabelsi <64127335+tobias-trabelsi-sonarsource@users.noreply.github.com>2022-02-08 14:48:09 +0100
committersonartech <sonartech@sonarsource.com>2022-03-01 20:04:06 +0000
commitc077671087acdad1750b1c1d4319bde5e8b08b57 (patch)
tree377c8fb44278f515353e9c2a602acffe37277f28
parenta473487bfc603cbad6d3a9ba5b021cc7f063e6ec (diff)
downloadsonarqube-branch-9.3.tar.gz
sonarqube-branch-9.3.zip
BUILD-1347 added whitesource scanbranch-9.3
-rw-r--r--.cirrus.yml30
-rw-r--r--wss-unified-agent.config25
2 files changed, 54 insertions, 1 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index e1f5cddf14a..3cabd923e79 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -619,4 +619,32 @@ upgd_oracle12_task:
- ./private/cirrus/cirrus-qa.sh oracle12
on_failure:
<<: *REPORTS_JUNIT_ON_FAILURE_TEMPLATE
- \ No newline at end of file
+
+ws_scan_task:
+ only_if: >-
+ $CIRRUS_CRON == "nightly" ||
+ $CIRRUS_CRON == "weekly-latest" ||
+ $CIRRUS_CRON == "weekly-lts" ||
+ changesInclude('private/cirrus/cirrus-whitesource-scan.sh')
+ <<: *YARN_CACHE_TEMPLATE
+ <<: *GRADLE_CACHE_TEMPLATE
+ depends_on: build
+ timeout_in: 30m
+ gke_container:
+ <<: *GKE_CONTAINER_TEMPLATE
+ cpu: 2
+ memory: 4Gb
+ env:
+ WS_APIKEY: ENCRYPTED[308f809a4051b3225bed52131b32fb52895bc5a12c23e901f35b1d1e9d80bcaf75a1023c0dd171994bdbe790b4055e66]
+ WS_WSS_URL: "https://saas-eu.whitesourcesoftware.com/agent"
+ WS_USERKEY: ENCRYPTED[747f9c9006cf9859fd5f02bad85a044c5c0f32d12190deb624d480ad6d86b2f114da136e068645281e9e83e2f0727ab2]
+ SLACK_WEBHOOK_SQ: ENCRYPTED[dec8e4350cbea3b94d63098558bcb3ae9e79b71c2b6286fcfb9eb80c0953b6448b10f7271b07b5e75e52f362c25d7a8f]
+ whitesource_script:
+ - ./private/cirrus/cirrus-whitesource-scan.sh
+ allow_failures: "true"
+ on_failure:
+ slack_notification_script:
+ - ./private/cirrus/cirrus-whitesource-notifications.sh
+ always:
+ ws_artifacts:
+ path: "whitesource/**/*"
diff --git a/wss-unified-agent.config b/wss-unified-agent.config
new file mode 100644
index 00000000000..2ec6d0e3bc7
--- /dev/null
+++ b/wss-unified-agent.config
@@ -0,0 +1,25 @@
+# WhiteSource documentation https://whitesource.atlassian.net/wiki/spaces/WD/pages/1544880156/Unified+Agent+Configuration+Parameters
+
+excludes=**/*it-* **/*test*
+includes=**/*.java **/*.js **/*.ts
+fileSystemScan=False
+
+gradle.resolveDependencies=True
+gradle.aggregateModules=True
+gradle.preferredEnvironment=wrapper
+gradle.innerModulesAsDependencies=True
+gradle.ignoredConfigurations=.*it.*
+gradle.excludeModules=.*it.*
+
+npm.includeDevDependencies=False
+npm.resolveDependencies=True
+npm.resolveLockFile=False
+npm.runPreStep=False
+npm.yarnProject=True
+
+case.sensitive.glob=false
+archiveIncludes=**/*.jar
+
+forceUpdate=true
+checkPolicies=true
+forceUpdate.failBuildOnPolicyViolation=true