Skip to content

Commit 2f16e18

Browse files
chore(docs): add cloud-RAD for Java (#444)
Co-authored-by: Jeff Ching <chingor@google.com> Source-Author: Les Vogel <lesv@users.noreply.github.com> Source-Date: Thu Jul 30 13:09:50 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: dd230c816f88d0141fcd0be83498986287220d1b Source-Link: googleapis/synthtool@dd230c8
1 parent f0e945e commit 2f16e18

File tree

3 files changed

+35
-4
lines changed

3 files changed

+35
-4
lines changed

.kokoro/release/publish_javadoc.cfg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/doc-templates/"
4+
25
env_vars: {
36
key: "STAGING_BUCKET"
47
value: "docs-staging"
58
}
69

10+
env_vars: {
11+
key: "STAGING_BUCKET_V2"
12+
value: "docs-staging-v2-staging"
13+
# Production will be at: docs-staging-v2
14+
}
15+
716
env_vars: {
817
key: "TRAMPOLINE_BUILD_FILE"
918
value: "github/java-storage/.kokoro/release/publish_javadoc.sh"
1019
}
1120

21+
1222
before_action {
1323
fetch_keystore {
1424
keystore_resource {

.kokoro/release/publish_javadoc.sh

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,25 @@ if [[ -z "${STAGING_BUCKET}" ]]; then
2424
exit 1
2525
fi
2626

27+
if [[ -z "${STAGING_BUCKET_V2}" ]]; then
28+
echo "Need to set STAGING_BUCKET_V2 environment variable"
29+
exit 1
30+
fi
31+
2732
# work from the git root directory
2833
pushd $(dirname "$0")/../../
2934

3035
# install docuploader package
3136
python3 -m pip install gcp-docuploader
3237

3338
# compile all packages
34-
mvn clean install -B -DskipTests=true
39+
mvn clean install -B -q -DskipTests=true
3540

3641
NAME=google-cloud-storage
3742
VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3)
3843

3944
# build the docs
40-
mvn site -B
45+
mvn site -B -q
4146

4247
pushd target/site/apidocs
4348

@@ -53,3 +58,19 @@ python3 -m docuploader upload . \
5358
--staging-bucket ${STAGING_BUCKET}
5459

5560
popd
61+
62+
# V2
63+
mvn clean site -B -q -Ddevsite.template="${KOKORO_GFILE_DIR}/java/"
64+
65+
pushd target/devsite
66+
67+
# create metadata
68+
python3 -m docuploader create-metadata \
69+
--name ${NAME} \
70+
--version ${VERSION} \
71+
--language java
72+
73+
# upload docs
74+
python3 -m docuploader upload . \
75+
--credentials ${CREDENTIALS} \
76+
--staging-bucket ${STAGING_BUCKET_V2}

synth.metadata

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-storage.git",
7-
"sha": "f8a4b12517c661881d7b7c65f796c1c8f1cf3ae9"
7+
"sha": "0ce82ccf1e6ed8f46aeda92fe5f17eb427c3a7d9"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "synthtool",
1313
"remote": "https://github.com/googleapis/synthtool.git",
14-
"sha": "4f2c9f752a94042472fc03c5bd9e06e89817d2bd"
14+
"sha": "dd230c816f88d0141fcd0be83498986287220d1b"
1515
}
1616
}
1717
],

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy