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-logging-logback/.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-logging-logback
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-logging-logback.git",
7
- "sha": "a891198c812194cec0245214bf27abae434f0998 "
7
+ "sha": "34fb4f26883499169fa777e28066b0c7ee7a1016 "
8
8
}
9
9
},
10
10
{
11
11
"git": {
12
12
"name": "synthtool",
13
13
"remote": "https://github.com/googleapis/synthtool.git",
14
- "sha": "4f2c9f752a94042472fc03c5bd9e06e89817d2bd "
14
+ "sha": "dd230c816f88d0141fcd0be83498986287220d1b "
15
15
}
16
16
}
17
17
],
You can’t perform that action at this time.
0 commit comments