-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildspec.yml
36 lines (34 loc) · 924 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
version: 0.2
phases:
install:
runtime-versions:
java: openjdk8
pre_build:
commands:
- IP=$(curl http://checkip.amazonaws.com)/32
- echo $IP of CodeBuild Instance
build:
commands:
- chmod +x aws_scripts/build.sh
- echo Main build started on `date`
- aws_scripts/build.sh mvn -B deploy
- echo Analysis started on `date`
- mvn sonar:sonar
post_build:
commands:
- IP=$(curl http://checkip.amazonaws.com)/32
- echo $IP of CodeBuild Instance
- echo Packaging application
- cd FrontEnd
- zip -r frontend.zip appspec.yml cleanup dist/
- mv frontend.zip frontend
- echo Packaging core
- cd ../API
- zip -r api.zip appspec.yml cleanup permissions target/API-0.0.1/
- mv api.zip api
- echo Build completed on `date`
artifacts:
files:
- FrontEnd/frontend
- API/api
discard-paths: yes