-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathashish_buildSpec.yml
More file actions
35 lines (35 loc) · 1.25 KB
/
ashish_buildSpec.yml
File metadata and controls
35 lines (35 loc) · 1.25 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.1
component: build
timeoutInSeconds: 20000
runAs: root
shell: bash
env:
exportedVariables:
- version
steps:
- type: VulnerabilityAudit # required
name: "Vulnerability Audit Step" # optional
configuration: # required
buildType: maven # required
pomFilePath: ${OCI_PRIMARY_SOURCE_DIR}/pom.xml # required (Supports parameter substitution)
maxPermissibleCvssV2Score: 10.0 # optional (defaults to 0.0)
maxPermissibleCvssV3Score: 10.0 # optional (defaults to 0.0)
knowledgeBaseId: ocid1.admknowledgebase.oc1.iad.amaaaaaa4725fbqawhps377rxplobl7yc3kbpdrtdanlpo44ldob5722hjza # required (Supports parameter substitution)
vulnerabilityAuditName: ashishReport. # optional (Supports parameter substitution), name will be auto generated.
- type: Command
name: "See maven repo before build"
command: |
ls -lart /root/.m2/repository
echo "hello world"
- type: Command
name: "building the code"
command: |
mvn clean install
- type: Command
name: "viewing after build"
command: |
ls -lart /root/.m2/repository
# - type: Command
# name: "building the code second time"
# command: |
# mvn clean install