forked from toddlipcon/hadoop-lzo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.blazar.yaml
68 lines (61 loc) · 2.72 KB
/
.blazar.yaml
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
60
61
62
63
64
65
66
67
68
buildDeps:
- hs-build-tools
- maven3
buildpack:
name: Blazar-Buildpack-RPM
env:
PLATFORMS: "amd64 arm64"
# Don't use the buildpack to build and upload RPMs for us
DISABLE_CENTOS_6_RPMS: "true"
ENABLE_CENTOS_8_RPMS: "true"
YUM_REPO_UPLOAD_OVERRIDE_CENTOS_8: "AnyLinuxVersion_HubSpot"
# The entry point script for the rpm build
RPM_BUILD_COMMAND: "./build.sh"
RPMS_OUTPUT_DIR: "$WORKSPACE/generated_rpms"
BUILD_CONTAINER_IMAGE_CENTOS_8: "docker.hubteam.com/apache-hadoop-build-container/apache-hadoop-build-container:latest"
WORKSPACE_WRITEABLE: "true"
stepActivation:
uploadRpms:
branchRegexes: [.*]
before:
- description: "Overriding maven versions if on a branch"
commands:
- command: '[ "$GIT_BRANCH" == "master" ] || set-maven-versions --version $SET_VERSION --root $WORKSPACE'
env:
SET_VERSION: "0.4.21-hubspot-${GIT_BRANCH}-SNAPSHOT"
- description: "Creating hubspot.build.json metadata"
commands:
- |
create-build-json --workspace_path . --project_name $BLAZAR_COORDINATES
for pomfile in $(find . -name pom.xml -maxdepth 2); do
pomdir=$(dirname $pomfile)
echo "Copying build json into $pomdir"
copy-build-json --search-dir . --module-dir $pomdir
done
after:
onSuccess:
- name: deploy
commands:
- mvn $MAVEN_ARGS
-Dblazar.enableLogSegmentation=true
-DaltSnapshotDeploymentRepository=hubspot-maven-artifacts-prod::default::s3://hubspot-maven-artifacts-prod/artifacts/snapshots
-DaltReleaseDeploymentRepository=hubspot-maven-artifacts-prod::default::s3://please-publish-a-snapshot
-DaltDeploymentRepository=hubspot-maven-artifacts-prod::default::s3://please-upgrade-maven-deploy-plugin
-Dmaven.install.skip=true
-Daether.artifactResolver.snapshotNormalization=false
-Daether.connector.resumeDownloads=false
-DargLine="-Xmx$MAVEN_TEST_HEAP -XX:+TieredCompilation -XX:TieredStopAtLevel=1 $MAVEN_EXTRA_TEST_ARGLINE_ARGS"
-Dextra.test.arg.line="-Xmx$MAVEN_TEST_HEAP $MAVEN_EXTRA_TEST_ARGLINE_ARGS"
-Dstyle.color=always
-Dgpg.executable=/opt/build-deps/hs-build-tools/venv/bin/sign-maven-artifact
-B
-N
-U
-DskipTests
com.hubspot:build-location-maven-plugin:1.0-SNAPSHOT:check
deploy
com.hubspot.mercedes:mercedes-maven-plugin:0.1-SNAPSHOT:report
org.apache.maven.plugins:maven-gpg-plugin:1.6:sign
- description: "Add .blazar_notify_deploy_service_and_upload_artifact_if_exists flag"
commands:
- command: touch ".blazar_notify_deploy_service_and_upload_artifact_if_exists"