This repository was archived by the owner on Sep 16, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +35
-4
lines changed Expand file tree Collapse file tree 3 files changed +35
-4
lines changed Original file line number Diff line number Diff line change 11# Format: //devtools/kokoro/config/proto/build.proto
2+
3+ gfile_resources: " /bigstore/cloud-devrel-kokoro-resources/doc-templates/"
4+
25env_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+
716env_vars: {
817 key: " TRAMPOLINE_BUILD_FILE"
918 value: " github/java-recaptchaenterprise/.kokoro/release/publish_javadoc.sh"
1019}
1120
21+
1222before_action {
1323 fetch_keystore {
1424 keystore_resource {
Original file line number Diff line number Diff line change @@ -24,20 +24,25 @@ if [[ -z "${STAGING_BUCKET}" ]]; then
2424 exit 1
2525fi
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
2833pushd $( dirname " $0 " ) /../../
2934
3035# install docuploader package
3136python3 -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
3641NAME=google-cloud-recaptchaenterprise
3742VERSION=$( grep ${NAME} : versions.txt | cut -d: -f3)
3843
3944# build the docs
40- mvn site -B
45+ mvn site -B -q
4146
4247pushd target/site/apidocs
4348
@@ -53,3 +58,19 @@ python3 -m docuploader upload . \
5358 --staging-bucket ${STAGING_BUCKET}
5459
5560popd
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}
Original file line number Diff line number Diff line change 44 "git": {
55 "name": ".",
66 "remote": "https://github.com/googleapis/java-recaptchaenterprise.git",
7- "sha": "99daf46dd2f9e984f526f9878e28943051b6b5df "
7+ "sha": "05a343969e10e27a2ad37e015fc15c245ac21c3a "
88 }
99 },
1010 {
2727 "git": {
2828 "name": "synthtool",
2929 "remote": "https://github.com/googleapis/synthtool.git",
30- "sha": "4f2c9f752a94042472fc03c5bd9e06e89817d2bd "
30+ "sha": "dd230c816f88d0141fcd0be83498986287220d1b "
3131 }
3232 }
3333 ],
You can’t perform that action at this time.
0 commit comments