-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathshippable.yml
40 lines (33 loc) · 1.24 KB
/
shippable.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
language: java
jdk:
- oraclejdk8
env:
global:
- S3_BUCKET=shipdemo-java-s3-ec2
build:
pre_ci_boot:
image_name: drydock/u14
image_tag: tip
pull: true
options: '--privileged=true --net=bridge'
ci:
- sudo wget http://www-us.apache.org/dist/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz
- sudo tar xzf apache-maven-3.3.9-bin.tar.gz -C /usr/local && rm -f apache-maven-3.3.9-bin.tar.gz
- ln -fs /usr/local/apache-maven-$3.3.9/bin/mvn /usr/bin
- echo "export PATH=$PATH:/usr/local/apache-maven-3.3.9/bin" >> $HOME/.bashrc
- mkdir -p shippable/testresults && mkdir -p shippable/codecoverage
- /usr/local/apache-maven-3.3.9/bin/mvn -q -B clean cobertura:cobertura install
- ls -al $SHIPPABLE_BUILD_DIR/target
- aws s3 cp $SHIPPABLE_BUILD_DIR/target/HelloWorld.war s3://$S3_BUCKET/builds/$BRANCH.$BUILD_NUMBER/HelloWorld.war
on_success:
- echo versionName=$BRANCH.$BUILD_NUMBER/HelloWorld.war > /build/state/demo_war_s3_file.env
integrations:
hub:
- integrationName: ttrahan-ecr
type: ecr
# notifications:
# - integrationName: demo-war-s3-hook
# type: webhook
# payload:
# - versionName=$BRANCH.$BUILD_NUMBER/HelloWorld.war
# on_success: always