-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yml
More file actions
35 lines (34 loc) · 1.06 KB
/
buildspec.yml
File metadata and controls
35 lines (34 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: 0.2
env:
variables:
CXSERVER: "https://7b9c3c8d.ngrok.io"
PROJECTNAME: "CxServer\\WebGoat-Legacy"
PRESET: "Checkmarx Default"
LOCATIONTYPE: "folder"
parameter-store:
CXTOKEN: "CXTOKEN"
phases:
install:
runtime-versions:
java: corretto8
commands:
- echo Entering install phase...
- wget -O ~/cxcli.zip https://download.checkmarx.com/9.0.0/Plugins/CxConsolePlugin-2020.3.1.zip
- unzip ~/cxcli.zip -d ~/cxcli
- rm -rf ~/cxcli.zip
- chmod +x ~/cxcli/runCxConsole.sh
pre_build:
commands:
- echo Entering pre_build phases...
- ~/cxcli/runCxConsole.sh Scan -v -Projectname "${PROJECTNAME}" -CxServer "${CXSERVER}" -CxToken "${CXTOKEN}" -LocationType "${LOCATIONTYPE}" -LocationPath "${CODEBUILD_SRC_DIR}" -Preset "${PRESET}"
finally:
- cd $CODEBUILD_SRC_DIR
build:
commands:
- echo Entering build phase...
- echo Build started on `date`
- mvn package
post_build:
commands:
- echo Entering post_build phase...
- echo Build completed on `date`i