-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildspec.yml
33 lines (32 loc) · 1.31 KB
/
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
version: 0.2
phases:
install:
commands:
- echo Nothing to do in the install phase...
pre_build:
commands:
- echo Nothing to do in the pre_build phase...
build:
commands:
- echo Build started on `date`
post_build:
commands:
- mvn package -DRDS_PORT=$RDS_PORT -DRDS_USERNAME=$RDS_USERNAME -DRDS_PASSWORD=$RDS_PASSWORD -DRDS_DB_NAME=$RDS_DB_NAME -DRDS_HOSTNAME=$RDS_HOSTNAME
- mv com.supeyou.app/target/app-0.0.1-SNAPSHOT.war com.supeyou.app/target/ROOT.war
- touch com.supeyou.app/target/deleteme.war
- echo Build completed on `date`
# - pwd
# - ls -l
# see https://stackoverflow.com/questions/37144891/aws-codepipeline-elasticbeanstalk-deploy-failure
# - mkdir -p com.mtheile.f21web.app/target/ && touch com.mtheile.f21web.app/target/deleteme.war
artifacts:
files:
# see http://docs.aws.amazon.com/codebuild/latest/userguide/sample-elastic-beanstalk.html#sample-elastic-beanstalk-manual
- com.supeyou.app/target/ROOT.war
- com.supeyou.app/target/deleteme.war
# - .ebextensions/**/*
# - '/**/*'
# - com.mtheile.f21web.app/target/app-0.0.1-SNAPSHOT.war
# - com.mtheile.f21web.app/target/deleteme.war
discard-paths: yes
# base-directory: 'com.mtheile.f21web.app/target/app-0.0.1-SNAPSHOT'