Skip to content

Commit dd72264

Browse files
SONARJAVA-5527 Onboard project on Mend (#16)
1 parent 1439ff6 commit dd72264

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.cirrus.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,29 @@ build_task:
5555
- regular_mvn_build_deploy_analyze
5656
cleanup_before_cache_script: cleanup_maven_repository
5757

58+
ws_scan_task:
59+
<<: *ONLY_SONARSOURCE_QA
60+
eks_container:
61+
<<: *CONTAINER_DEFINITION
62+
image: ${CIRRUS_AWS_ACCOUNT}.dkr.ecr.eu-central-1.amazonaws.com/base:j17-latest
63+
cpu: 4
64+
memory: 4G
65+
# run only on master and long-term branches
66+
only_if: $CIRRUS_USER_COLLABORATOR == 'true' && ($CIRRUS_BRANCH == "master" || $CIRRUS_BRANCH =~ "branch-.*" || $CIRRUS_BRANCH =~ "mend-.*")
67+
env:
68+
WS_APIKEY: VAULT[development/kv/data/mend data.apikey]
69+
maven_cache:
70+
folder: ${CIRRUS_WORKING_DIR}/.m2/repository
71+
whitesource_script:
72+
- source cirrus-env QA
73+
- source set_maven_build_version $BUILD_NUMBER
74+
- mvn clean install --batch-mode -Dmaven.test.skip=true -pl '!java-symbolic-execution/java-symbolic-execution-checks-test-sources'
75+
- source ws_scan.sh
76+
allow_failures: "true"
77+
always:
78+
ws_artifacts:
79+
path: "whitesource/**/*"
80+
5881
ruling_task:
5982
depends_on:
6083
- build
@@ -89,6 +112,7 @@ ruling_task:
89112
promote_task:
90113
depends_on:
91114
- build
115+
- ws_scan
92116
- ruling
93117
<<: *ONLY_SONARSOURCE_QA
94118
eks_container:

wss-unified-agent.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
excludes=**/*sources.jar **/*javadoc.jar **/its/plugin/projects/** **/its/sources/** **/java-checks-test-sources/**
1+
excludes=**/*sources.jar **/*javadoc.jar **/its/sources/**
22
fileSystemScan=False
33
resolveAllDependencies=False
44

0 commit comments

Comments
 (0)