Skip to content

Publish javadoc with publish to s3 service pipeline #1044

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .buildkite/release_central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ steps:
command: ".ci/release_central.sh"
artifact_paths:
- ".ci/output/repository/**/*"
- "signed-artifacts/*"
- wait: ~
- label: "Publish S3 Artifacts :s3:"
trigger: unified-release-publish-s3-artifacts
key: publish-s3-service
build:
env:
DESTINATION_PATH: "s3://artifacts.elastic.co/javadoc/co/elastic/clients/elasticsearch-java/"
EXTRACT_ARTIFACT: "elasticsearch-java-${VERSION}-javadoc.jar"

#notify:
# - slack: "#devtools-notify"
Expand Down
9 changes: 7 additions & 2 deletions .ci/make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,21 +188,26 @@ fi

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

if [[ "$DRY_RUN" = "true" ]]; then
echo "Dry run: building and publishing to the local repository"
gradle_task="publishAllPublicationsToDryRunRepository"
gradle_task="publishForReleaseManager"
else
echo "Releasing to Maven snapshot repo"
gradle_task="publishToSonatype closeAndReleaseStagingRepositories"
# gradle_task="publishToSonatype closeAndReleaseStagingRepositories"
gradle_task="publishForReleaseManager"
fi
docker run --rm --env VERSION=$VERSION -u "$(id -u)" \
$git_mount $src_mount $output_mount \
-v /tmp/secured:/tmp/secured \
$docker_image \
$gradle_task

mkdir signed-artifacts
cp .ci/output/repository/co/elastic/clients/elasticsearch-java/$VERSION/elasticsearch-java-${VERSION}-javadoc.jar signed-artifacts/elasticsearch-java-${VERSION}-javadoc.jar
fi

if [[ "$CMD" == "bump" ]]; then
Expand Down
1 change: 1 addition & 0 deletions docs/reference/javadoc-source-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ mapped_pages:

# Javadoc and source code [java-client-javadoc]

TODO: Update to one with prefix of artifacts.elastic.co
The Javadoc for the Java API Client is available at [https://javadoc.io/doc/co.elastic.clients/elasticsearch-java/](https://javadoc.io/doc/co.elastic.clients/elasticsearch-java/latest/index.html).

The source code is at [https://github.com/elastic/elasticsearch-java/](https://github.com/elastic/elasticsearch-java/) and is licensed under the Apache 2.0 License.
Expand Down
Loading