-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathrelease.yml
More file actions
111 lines (97 loc) · 3.1 KB
/
release.yml
File metadata and controls
111 lines (97 loc) · 3.1 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
## Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
## SPDX-License-Identifier: Apache-2.0
version: 0.2
batch:
fast-fail: true
build-graph:
# Generate pre-release build to CodeArtifact
- identifier: release_staging
buildspec: codebuild/release/release-staging.yml
# Validate CodeArtifact with supported JDK and Corretto
- identifier: validate_staging_release_openjdk8
depend-on:
- release_staging
buildspec: codebuild/release/validate-staging.yml
env:
variables:
JAVA_ENV_VERSION: openjdk8
JAVA_NUMERIC_VERSION: 8
image: aws/codebuild/standard:3.0
- identifier: validate_staging_release_openjdk11
depend-on:
- release_staging
buildspec: codebuild/release/validate-staging.yml
env:
variables:
JAVA_ENV_VERSION: openjdk11
JAVA_NUMERIC_VERSION: 11
image: aws/codebuild/standard:3.0
- identifier: validate_staging_release_corretto8
depend-on:
- release_staging
buildspec: codebuild/release/validate-staging.yml
env:
variables:
JAVA_ENV_VERSION: corretto8
JAVA_NUMERIC_VERSION: 8
image: aws/codebuild/amazonlinux2-x86_64-standard:3.0
- identifier: validate_staging_release_corretto11
depend-on:
- release_staging
buildspec: codebuild/release/validate-staging.yml
env:
variables:
JAVA_ENV_VERSION: corretto11
JAVA_NUMERIC_VERSION: 11
image: aws/codebuild/amazonlinux2-x86_64-standard:3.0
- identifier: validate_staging_release_corretto17
depend-on:
- release_staging
buildspec: codebuild/release/validate-staging.yml
env:
variables:
JAVA_ENV_VERSION: corretto17
JAVA_NUMERIC_VERSION: 17
# Only AL2 instance supporting corretto17 runtime is 4.0
image: aws/codebuild/amazonlinux2-x86_64-standard:4.0
# Version Project
- identifier: version
depend-on:
- release_staging
- validate_staging_release_openjdk8
- validate_staging_release_openjdk11
- validate_staging_release_corretto8
- validate_staging_release_corretto11
- validate_staging_release_corretto17
buildspec: codebuild/release/version.yml
env:
image: aws/codebuild/standard:6.0
# Publish to Maven Central
- identifier: publish
depend-on:
- version
buildspec: codebuild/release/release-prod.yml
# TODO: Validate Maven artifact using a sample project
# Search for published Artifact
- identifier: artifact_hunt
depend-on:
- publish
buildspec: codebuild/release/artifact-hunt.yml
# Upload Artifacts
- identifier: upload_artifacts
depend-on:
- artifact_hunt
buildspec: codebuild/release/upload_artifacts.yml
env:
# standard:6.0 (Ubuntu) supports GH CLI; AL2 does not
image: aws/codebuild/standard:6.0
# Generate and update new javadocs
- identifier: update_javadoc
depend-on:
- upload_artifacts
buildspec: codebuild/release/javadoc.yml
env:
variables:
JAVA_ENV_VERSION: corretto11
JAVA_NUMERIC_VERSION: 11
image: aws/codebuild/amazonlinux2-x86_64-standard:3.0