-
Notifications
You must be signed in to change notification settings - Fork 2
/
buildspec-pr.yml
59 lines (54 loc) · 2.01 KB
/
buildspec-pr.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: 0.2
env:
variables:
DEV_BRANCH: dev
RELEASE_BRANCH: master
REPO: ebx/ebx-jobqueue-sdk
BASE_BUILD_EMAIL_RECIPIENT: [email protected]
TEST_CONTAINER_TAG: ''
TEST_CONTAINER_CHART: ''
BUILD_SCRIPTS_DIR: Infrastructure/Build-Scripts
BUILD_DOCKER_DIR: Infrastructure/Build-Docker
BUILD_HELM_DIR: Infrastructure/Build-Helm
INFRASTRUCTURE_CDK_DIR: Infrastructure/Build-Infrastructure
secrets-manager:
GITHUB_TOKEN: '/Prod/External/Github/APIToken-SupportAtEchoboxCom'
phases:
install:
runtime-versions:
java: corretto8
commands:
- # start dockerd
- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://127.0.0.1:2375 --storage-driver=overlay2&
pre_build:
commands:
- ## install python3 to allow build_docs.py to run
- apt-get update
- apt install -y python3-pip
- pip install --upgrade pip
- pip --version
- apt install -y dos2unix
- ## Confirm build versions
- docker --version
- java -version
- ## BOOTSTRAP Script - must run first !!
- chmod a+x ${BUILD_SCRIPTS_DIR}/get_latest_buildscripts.sh
- ${BUILD_SCRIPTS_DIR}/get_latest_buildscripts.sh
- ##Set execute permissions
- chmod a+x ${BUILD_SCRIPTS_DIR}/detect_and_stop_duplicate_builds.sh
- chmod a+x ${BUILD_SCRIPTS_DIR}/validate_microservice_documentation.sh
- chmod a+x ${BUILD_SCRIPTS_DIR}/validate_pr_details.sh
build:
commands:
- # containerise build if TEST_CONTAINER_TAG is set
- # Stop any duplicate builds
- ${BUILD_SCRIPTS_DIR}/detect_and_stop_duplicate_builds.sh
- # remove validate_pr_details.sh for now as no pom.xml in root
- ${BUILD_SCRIPTS_DIR}/validate_pr_details.sh
- ${BUILD_SCRIPTS_DIR}/validate_microservice_documentation.sh
- ## just build and test
- cd "${CODEBUILD_SRC_DIR}/JobQueue"
- mvn -am clean package -Dcheckstyle.skip=false -Dmaven.test.skip=false
cache:
paths:
- '/root/.m2/**/*'