Skip to content

Commit d6b5063

Browse files
Add WhiteSource scan (#1005)
1 parent 3cf016f commit d6b5063

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.cirrus.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,29 @@ build_win_task:
7272
- git submodule update --init
7373
- mvn.cmd -s /c/buildTools-docker/settings-public.xml test -DskipTypeshed=true
7474
cleanup_before_cache_script: cleanup_maven_repository
75+
76+
ws_scan_task:
77+
depends_on:
78+
- build
79+
gke_container:
80+
<<: *CONTAINER_DEFINITION
81+
cpu: 2
82+
memory: 2G
83+
# run only on master and long-term branches
84+
only_if: $CIRRUS_USER_COLLABORATOR == 'true' && ($CIRRUS_BRANCH == "master" || $CIRRUS_BRANCH =~ "branch-.*")
85+
env:
86+
WS_APIKEY: ENCRYPTED[!3929c6148b9dfc751a2d17c590b15d755f82cd9c108f2de5f24a5b32f2a0c26144e921fab7e2c959fc2824d6d6d1550d!]
87+
maven_cache:
88+
folder: ${CIRRUS_WORKING_DIR}/.m2/repository
89+
whitesource_script:
90+
- source cirrus-env QA
91+
- source set_maven_build_version $BUILD_NUMBER
92+
- mvn clean install -DskipTests
93+
- source ws_scan.sh
94+
allow_failures: "true"
95+
always:
96+
ws_artifacts:
97+
path: "whitesource/**/*"
7598

7699
plugin_qa_task:
77100
depends_on:
@@ -123,6 +146,7 @@ promote_task:
123146
depends_on:
124147
- ruling
125148
- plugin_qa
149+
- ws_scan
126150
only_if: $CIRRUS_PR != "" || $CIRRUS_BRANCH == "master" || $CIRRUS_BRANCH =~ "branch-.*"
127151
gke_container:
128152
<<: *CONTAINER_DEFINITION

wss-unified-agent.config

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# WhiteSource documentation https://whitesource.atlassian.net/wiki/spaces/WD/pages/1544880156/Unified+Agent+Configuration+Parameters
2+
3+
excludes=**/*sources.jar **/*javadoc.jar its/sources/** its/plugin/it-python-plugin-test/projects/**
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+
13+
wss.url=https://saas-eu.whitesourcesoftware.com/agent
14+
15+
forceUpdate=true
16+
checkPolicies=true
17+
forceUpdate.failBuildOnPolicyViolation=true

0 commit comments

Comments
 (0)