Skip to content

Commit e1086ff

Browse files
authored
WhiteSource scan (#2845)
1 parent 1f6f977 commit e1086ff

File tree

3 files changed

+49
-1
lines changed

3 files changed

+49
-1
lines changed

.cirrus.yml

+25
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,30 @@ build_win_task:
8282
- mvn.cmd -s /c/buildTools-docker/settings-public.xml test
8383
cleanup_before_cache_script: cleanup_maven_repository
8484

85+
ws_scan_task:
86+
depends_on:
87+
- build
88+
gke_container:
89+
dockerfile: .cirrus/nodejs-12.Dockerfile
90+
<<: *CONTAINER_DEFINITION
91+
cpu: 4
92+
memory: 8G
93+
# run only on master and long-term branches
94+
only_if: $CIRRUS_USER_COLLABORATOR == 'true' && ($CIRRUS_BRANCH == "master" || $CIRRUS_BRANCH =~ "branch-.*")
95+
env:
96+
WS_APIKEY: ENCRYPTED[!3929c6148b9dfc751a2d17c590b15d755f82cd9c108f2de5f24a5b32f2a0c26144e921fab7e2c959fc2824d6d6d1550d!]
97+
maven_cache:
98+
folder: ${CIRRUS_WORKING_DIR}/.m2/repository
99+
whitesource_script:
100+
- source cirrus-env QA
101+
- source set_maven_build_version $BUILD_NUMBER
102+
- mvn clean install -DskipTests
103+
- source ws_scan.sh
104+
allow_failures: "true"
105+
always:
106+
ws_artifacts:
107+
path: "whitesource/**/*"
108+
85109
plugin_qa_task:
86110
depends_on:
87111
- build
@@ -182,6 +206,7 @@ ruling_task:
182206

183207
promote_task:
184208
depends_on:
209+
- ws_scan
185210
- build_win
186211
- plugin_qa
187212
- plugin_qa_win

.cirrus/nodejs-12.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM gcr.io/language-team/base:latest
22

33
USER root
44

5-
ENV NODE_VERSION v12.20.1
5+
ENV NODE_VERSION v12.22.7
66

77
RUN wget -U "nodejs" -q -O nodejs.tar.xz https://nodejs.org/dist/${NODE_VERSION}/node-${NODE_VERSION}-linux-x64.tar.xz \
88
&& tar -xJf "nodejs.tar.xz" -C /usr/local --strip-components=1 --no-same-owner \

wss-unified-agent.config

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# WhiteSource documentation https://whitesource.atlassian.net/wiki/spaces/WD/pages/1544880156/Unified+Agent+Configuration+Parameters
2+
3+
excludes=**/*sources.jar **/*javadoc.jar **/its/plugin/projects/** eslint-bridge/tests/**
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+
npm.includeDevDependencies=True
14+
npm.resolveDependencies=True
15+
npm.resolveLockFile=False
16+
npm.runPreStep=False
17+
npm.yarnProject=True
18+
19+
wss.url=https://saas-eu.whitesourcesoftware.com/agent
20+
21+
forceUpdate=true
22+
checkPolicies=true
23+
forceUpdate.failBuildOnPolicyViolation=true

0 commit comments

Comments
 (0)