-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathbuildspec.yml
41 lines (38 loc) · 922 Bytes
/
buildspec.yml
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
36
37
38
39
40
41
version: 0.2
phases:
install:
runtime-versions:
java: corretto11
commands:
- echo Entered the install phase...
- apt-get update -y
- apt-get install -y maven
finally:
- echo This always runs even if the update or install command fails
pre_build:
commands:
- echo Entered the pre_build phase...
finally:
- echo This always runs even if the login command fails
build:
commands:
- echo Entered the build phase...
- echo Build started on `date`
- cd simplq/
- echo $HOME
- ls $HOME
- echo $CODEBUILD_SRC_DIR
- mvn package
- ls -la target/
finally:
- echo This always runs even if the install command fails
post_build:
commands:
- echo Entered the post_build phase...
- echo Build completed on `date`
artifacts:
files:
- '**/*'
cache:
paths:
- '/root/.m2/**/*'