aboutsummaryrefslogtreecommitdiffstats
path: root/.cirrus.yml
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-02-08 20:03:05 +0000
commit89a8e12f5d738da62d0a409f33f12969a7d8e89d (patch)
tree52ec280d98a708625c6c08ddc873eec9e711c580 /.cirrus.yml
parent13d4479ef3908f7239619440d848f7c7dac60cf1 (diff)
downloadsonarqube-89a8e12f5d738da62d0a409f33f12969a7d8e89d.tar.gz
sonarqube-89a8e12f5d738da62d0a409f33f12969a7d8e89d.zip
BUILD-1347 added whitesource scan
Diffstat (limited to '.cirrus.yml')
-rw-r--r--.cirrus.yml29
1 files changed, 29 insertions, 0 deletions
diff --git a/.cirrus.yml b/.cirrus.yml
index 357ad36b665..ac988a120fc 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -644,3 +644,32 @@ owasp_check_task:
always:
reports_artifacts:
path: "build/reports/*"
+
+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
+ SLACK_WEBHOOK_SQ: ENCRYPTED[dec8e4350cbea3b94d63098558bcb3ae9e79b71c2b6286fcfb9eb80c0953b6448b10f7271b07b5e75e52f362c25d7a8f]
+ env:
+ WS_APIKEY: ENCRYPTED[308f809a4051b3225bed52131b32fb52895bc5a12c23e901f35b1d1e9d80bcaf75a1023c0dd171994bdbe790b4055e66]
+ WS_WSS_URL: "https://saas-eu.whitesourcesoftware.com/agent"
+ WS_USERKEY: ENCRYPTED[747f9c9006cf9859fd5f02bad85a044c5c0f32d12190deb624d480ad6d86b2f114da136e068645281e9e83e2f0727ab2]
+ 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/**/*" \ No newline at end of file