Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f2b9b61

Browse files
l-trottajoheec
andcommitted
Publish javadoc with publish to s3 service pipeline (#1044) (#1065)
* Publish javadoc with publish to s3 service pipeline * copying javadoc file to signed-artifacts * temp replaced task * temp replaced another task * temp dry * test pattern * Update s3 pipeline env variable secret override * Update release_central.yml * Upload javadoc to version bucket * Extract javadoc artifact from version directory * restore original publish command * signed artifacts pattern update * update javadocs link --------- Co-authored-by: johee <[email protected]> Co-authored-by: Laura Trotta <[email protected]> Co-authored-by: Laura Trotta <[email protected]>
1 parent c48626d commit f2b9b61

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.buildkite/release_central.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ steps:
77
command: ".ci/release_central.sh"
88
artifact_paths:
99
- ".ci/output/repository/**/*"
10+
- "signed-artifacts/**/*"
11+
- wait: ~
12+
- label: "Publish S3 Artifacts :s3:"
13+
trigger: unified-release-publish-s3-artifacts
14+
key: publish-s3-service
15+
build:
16+
env:
17+
DESTINATION_PATH: "s3://artifacts.elastic.co/javadoc/co/elastic/clients/elasticsearch-java/"
18+
EXTRACT_ARTIFACT: "${VERSION}/elasticsearch-java-${VERSION}-javadoc.jar"
1019

1120
#notify:
1221
# - slack: "#devtools-notify"

.ci/make.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,13 @@ fi
188188

189189
if [[ "$CMD" == "release" ]]; then
190190
rm -rf .ci/output/repository
191+
rm -rf signed-artifacts
191192
build_image
192193
echo -e "\033[34;1mINFO:\033[0m Building version ${VERSION}\033[0m"
193194

194195
if [[ "$DRY_RUN" = "true" ]]; then
195196
echo "Dry run: building and publishing to the local repository"
196-
gradle_task="publishAllPublicationsToDryRunRepository"
197+
gradle_task="publishForReleaseManager"
197198
else
198199
echo "Releasing to Maven snapshot repo"
199200
gradle_task="publishToSonatype closeAndReleaseStagingRepositories"
@@ -203,6 +204,9 @@ if [[ "$CMD" == "release" ]]; then
203204
-v /tmp/secured:/tmp/secured \
204205
$docker_image \
205206
$gradle_task
207+
208+
mkdir -p signed-artifacts/$VERSION
209+
cp .ci/output/repository/co/elastic/clients/elasticsearch-java/$VERSION/elasticsearch-java-${VERSION}-javadoc.jar signed-artifacts/$VERSION/elasticsearch-java-${VERSION}-javadoc.jar
206210
fi
207211

208212
if [[ "$CMD" == "bump" ]]; then

0 commit comments

Comments
 (0)