Skip to content

Commit d7bb7b0

Browse files
committed
Enable Mend scan
1 parent bcd3f7f commit d7bb7b0

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed

.cirrus.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,30 @@ build_task:
5555
format: junit
5656
type: text/xml
5757

58+
mend_scan_task:
59+
depends_on:
60+
- build
61+
eks_container:
62+
<<: *CONTAINER_DEFINITION
63+
cpu: 2
64+
memory: 2G
65+
# run only on master and long-term branches
66+
only_if: $CIRRUS_USER_COLLABORATOR == 'true' && $CIRRUS_TAG == "" && ($CIRRUS_BRANCH == $CIRRUS_DEFAULT_BRANCH || $CIRRUS_BRANCH =~ "branch-.*")
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 -DskipTests --batch-mode
75+
- source ws_scan.sh
76+
cleanup_before_cache_script: cleanup_maven_repository
77+
allow_failures: "true"
78+
always:
79+
ws_artifacts:
80+
path: "whitesource/**/*"
81+
5882
qa_task:
5983
depends_on:
6084
- build

wss-unified-agent.config

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Mend documentation https://docs.mend.io/bundle/unified_agent/page/unified_agent_configuration_parameters.html
2+
3+
excludes=**/*sources.jar **/*javadoc.jar its/**
4+
fileSystemScan=False
5+
resolveAllDependencies=False
6+
7+
maven.aggregateModules=True
8+
maven.downloadMissingDependencies=False
9+
maven.m2RepositoryPath=.m2/repository
10+
maven.resolveDependencies=True
11+
maven.runPreStep=False
12+
maven.ignoredScopes=provided,test,system
13+
14+
wss.url=https://saas-eu.whitesourcesoftware.com/agent
15+
16+
forceUpdate=true
17+
checkPolicies=true
18+
forceUpdate.failBuildOnPolicyViolation=true
19+
productName=Scanner/JavaLibrary

0 commit comments

Comments
 (0)