-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildspec.yml
33 lines (31 loc) · 1.24 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
version: 0.2
phases:
install:
runtime-versions:
java: corretto11
pre_build:
commands:
- echo Nothing to do in the pre_build phase...
build:
on-failure: ABORT
commands:
- echo Build started on `date`
- mvn clean verify
post_build:
on-failure: ABORT
commands:
- echo Build completed on `date`
- rm -rf s3-tools && git clone --depth 1 https://github.com/loonwerks/s3-tools.git
- export RELEASE_PKG_FILE=$(ls repository/target/com.collins.trustedsystems.briefcase.repository-*.zip)
- echo "Release package file is $RELEASE_PKG_FILE"
- export SNAPSHOT_NUMBER=$(ls repository/target/repository/plugins/com.collins.trustedsystems.briefcase_*.jar | grep -o "[0-9]\\+\\.[0-9]\\+\\.[0-9]\\+\\.[0-9]\\{12\\}")
- echo "deploying snapshot number $SNAPSHOT_NUMBER"
- pip3 install --user mako
- python3 s3-tools/s3tools/DeployToP2CompositeRepository.py --path repository/target/repository --prefix p2/snapshots/briefcase --child-name briefcase_$SNAPSHOT_NUMBER --logging=INFO
- python3 s3-tools/s3tools/ManageSnapshots.py --prefix p2/snapshots/briefcase --logging=INFO
artifacts:
files:
- repository/target/repository/**/*
cache:
paths:
- '/root/.m2/**/*'