This repository was archived by the owner on Sep 16, 2023. It is now read-only.
File tree 3 files changed +35
-4
lines changed
3 files changed +35
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Format: //devtools/kokoro/config/proto/build.proto
2
+
3
+ gfile_resources: " /bigstore/cloud-devrel-kokoro-resources/doc-templates/"
4
+
2
5
env_vars: {
3
6
key: " STAGING_BUCKET"
4
7
value: " docs-staging"
5
8
}
6
9
10
+ env_vars: {
11
+ key: " STAGING_BUCKET_V2"
12
+ value: " docs-staging-v2-staging"
13
+ # Production will be at: docs-staging-v2
14
+ }
15
+
7
16
env_vars: {
8
17
key: " TRAMPOLINE_BUILD_FILE"
9
18
value: " github/java-recaptchaenterprise/.kokoro/release/publish_javadoc.sh"
10
19
}
11
20
21
+
12
22
before_action {
13
23
fetch_keystore {
14
24
keystore_resource {
Original file line number Diff line number Diff line change @@ -24,20 +24,25 @@ if [[ -z "${STAGING_BUCKET}" ]]; then
24
24
exit 1
25
25
fi
26
26
27
+ if [[ -z " ${STAGING_BUCKET_V2} " ]]; then
28
+ echo " Need to set STAGING_BUCKET_V2 environment variable"
29
+ exit 1
30
+ fi
31
+
27
32
# work from the git root directory
28
33
pushd $( dirname " $0 " ) /../../
29
34
30
35
# install docuploader package
31
36
python3 -m pip install gcp-docuploader
32
37
33
38
# compile all packages
34
- mvn clean install -B -DskipTests=true
39
+ mvn clean install -B -q - DskipTests=true
35
40
36
41
NAME=google-cloud-recaptchaenterprise
37
42
VERSION=$( grep ${NAME} : versions.txt | cut -d: -f3)
38
43
39
44
# build the docs
40
- mvn site -B
45
+ mvn site -B -q
41
46
42
47
pushd target/site/apidocs
43
48
@@ -53,3 +58,19 @@ python3 -m docuploader upload . \
53
58
--staging-bucket ${STAGING_BUCKET}
54
59
55
60
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}
Original file line number Diff line number Diff line change 4
4
"git": {
5
5
"name": ".",
6
6
"remote": "https://github.com/googleapis/java-recaptchaenterprise.git",
7
- "sha": "99daf46dd2f9e984f526f9878e28943051b6b5df "
7
+ "sha": "05a343969e10e27a2ad37e015fc15c245ac21c3a "
8
8
}
9
9
},
10
10
{
27
27
"git": {
28
28
"name": "synthtool",
29
29
"remote": "https://github.com/googleapis/synthtool.git",
30
- "sha": "4f2c9f752a94042472fc03c5bd9e06e89817d2bd "
30
+ "sha": "dd230c816f88d0141fcd0be83498986287220d1b "
31
31
}
32
32
}
33
33
],
You can’t perform that action at this time.
0 commit comments