-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yml
More file actions
35 lines (30 loc) · 948 Bytes
/
buildspec.yml
File metadata and controls
35 lines (30 loc) · 948 Bytes
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
version: 0.2
phases:
install:
runtime-versions:
java: corretto8
pre_build:
commands:
- echo Initializing environment
- export CODEARTIFACT_AUTH_TOKEN=`aws codeartifact get-authorization-token --domain nextwork --domain-owner 590184061650 --region us-east-1 --query authorizationToken --output text`
build:
commands:
- echo "====== BEGINNING TEST PHASE ======"
- echo "Running tests on `date`"
- chmod +x run-tests.sh
- ./run-tests.sh
- echo "====== TEST PHASE COMPLETE ======"
- echo "====== BEGINNING BUILD PHASE ======"
- echo "Build started on `date`"
- mvn -s settings.xml compile
- echo "====== BUILD PHASE COMPLETE ======"
post_build:
commands:
- echo "Build completed on `date`"
- mvn -s settings.xml package
artifacts:
files:
- target/nextwork-web-project.war
- appspec.yml
- scripts/**/*
discard-paths: no