Skip to content
This repository was archived by the owner on Oct 14, 2023. It is now read-only.

Commit c436505

Browse files
chore: update common templates
1 parent 09c0e77 commit c436505

File tree

2 files changed

+26
-9
lines changed

2 files changed

+26
-9
lines changed

.kokoro/build.sh

+21-3
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,24 @@ if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTI
3737
export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_ROOT}/src/${GOOGLE_APPLICATION_CREDENTIALS})
3838
fi
3939

40+
RETURN_CODE=0
41+
set +e
42+
4043
case ${JOB_TYPE} in
4144
test)
4245
mvn test -B -Dclirr.skip=true -Denforcer.skip=true
46+
RETURN_CODE=$?
4347
bash ${KOKORO_GFILE_DIR}/codecov.sh
44-
bash .kokoro/coerce_logs.sh
4548
;;
4649
lint)
4750
mvn \
4851
-Penable-samples \
4952
com.coveo:fmt-maven-plugin:check
53+
RETURN_CODE=$?
5054
;;
5155
javadoc)
5256
mvn javadoc:javadoc javadoc:test-javadoc
57+
RETURN_CODE=$?
5358
;;
5459
integration)
5560
mvn -B ${INTEGRATION_TEST_ARGS} \
@@ -59,7 +64,7 @@ integration)
5964
-Denforcer.skip=true \
6065
-fae \
6166
verify
62-
bash .kokoro/coerce_logs.sh
67+
RETURN_CODE=$?
6368
;;
6469
samples)
6570
if [[ -f samples/pom.xml ]]
@@ -72,15 +77,28 @@ samples)
7277
-Denforcer.skip=true \
7378
-fae \
7479
verify
75-
bash .kokoro/coerce_logs.sh
80+
RETURN_CODE=$?
7681
popd
7782
else
7883
echo "no sample pom.xml found - skipping sample tests"
7984
fi
8085
;;
8186
clirr)
8287
mvn -B -Denforcer.skip=true clirr:check
88+
RETURN_CODE=$?
8389
;;
8490
*)
8591
;;
8692
esac
93+
94+
# fix output location of logs
95+
bash .kokoro/coerce_logs.sh
96+
97+
if [[ "${ENABLE_BUILD_COP}" == "true" ]]
98+
then
99+
chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/buildcop
100+
${KOKORO_GFILE_DIR}/linux_amd64/buildcop -repo=googleapis/java-translate
101+
fi
102+
103+
echo "exiting with ${RETURN_CODE}"
104+
exit ${RETURN_CODE}

synth.metadata

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
{
2-
"updateTime": "2020-02-21T23:06:50.837112Z",
2+
"updateTime": "2020-02-22T10:11:57.289557Z",
33
"sources": [
44
{
55
"generator": {
66
"name": "artman",
7-
"version": "0.45.0",
8-
"dockerImage": "googleapis/artman@sha256:6aec9c34db0e4be221cdaf6faba27bdc07cfea846808b3d3b964dfce3a9a0f9b"
7+
"version": "0.45.1",
8+
"dockerImage": "googleapis/artman@sha256:36956ca6a4dc70a59de5d5d0fd35061b050bb56884516f0898f46d8220f25738"
99
}
1010
},
1111
{
1212
"git": {
1313
"name": ".",
1414
"remote": "https://github.com/googleapis/java-translate.git",
15-
"sha": "6d5d6fb023775f37ec1e061f1dd946a1503c2b18"
15+
"sha": "09c0e77352587bb7809e6a6c54ece785212e991a"
1616
}
1717
},
1818
{
1919
"git": {
2020
"name": "googleapis",
2121
"remote": "https://github.com/googleapis/googleapis.git",
2222
"sha": "7f910bcc4fc4704947ccfd3ceed015d16b9e00c2",
23-
"internalRef": "296451205",
24-
"log": "7f910bcc4fc4704947ccfd3ceed015d16b9e00c2\nUpdate Dataproc v1beta2 client.\n\nPiperOrigin-RevId: 296451205\n\nde287524405a3dce124d301634731584fc0432d7\nFix: Reinstate method signatures that had been missed off some RPCs\nFix: Correct resource types for two fields\n\nPiperOrigin-RevId: 296435091\n\ne5bc9566ae057fb4c92f8b7e047f1c8958235b53\nDeprecate the endpoint_uris field, as it is unused.\n\nPiperOrigin-RevId: 296357191\n\n8c12e2b4dca94e12bff9f538bdac29524ff7ef7a\nUpdate Dataproc v1 client.\n\nPiperOrigin-RevId: 296336662\n\n17567c4a1ef0a9b50faa87024d66f8acbb561089\nRemoving erroneous comment, a la https://github.com/googleapis/java-speech/pull/103\n\nPiperOrigin-RevId: 296332968\n\n3eaaaf8626ce5b0c0bc7eee05e143beffa373b01\nAdd BUILD.bazel for v1 secretmanager.googleapis.com\n\nPiperOrigin-RevId: 296274723\n\ne76149c3d992337f85eeb45643106aacae7ede82\nMove securitycenter v1 to use generate from annotations.\n\nPiperOrigin-RevId: 296266862\n\n203740c78ac69ee07c3bf6be7408048751f618f8\nAdd StackdriverLoggingConfig field to Cloud Tasks v2 API.\n\nPiperOrigin-RevId: 296256388\n\ne4117d5e9ed8bbca28da4a60a94947ca51cb2083\nCreate a Bazel BUILD file for the google.actions.type export.\n\nPiperOrigin-RevId: 296212567\n\na9639a0a9854fd6e1be08bba1ac3897f4f16cb2f\nAdd secretmanager.googleapis.com v1 protos\n\nPiperOrigin-RevId: 295983266\n\nce4f4c21d9dd2bfab18873a80449b9d9851efde8\nasset: v1p1beta1 remove SearchResources and SearchIamPolicies\n\nPiperOrigin-RevId: 295861722\n\ncb61d6c2d070b589980c779b68ffca617f789116\nasset: v1p1beta1 remove SearchResources and SearchIamPolicies\n\nPiperOrigin-RevId: 295855449\n\nab2685d8d3a0e191dc8aef83df36773c07cb3d06\nfix: Dataproc v1 - AutoscalingPolicy annotation\n\nThis adds the second resource name pattern to the\nAutoscalingPolicy resource.\n\nCommitter: @lukesneeringer\nPiperOrigin-RevId: 295738415\n\n8a1020bf6828f6e3c84c3014f2c51cb62b739140\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 295286165\n\n5cfa105206e77670369e4b2225597386aba32985\nAdd service control related proto build rule.\n\nPiperOrigin-RevId: 295262088\n\nee4dddf805072004ab19ac94df2ce669046eec26\nmonitoring v3: Add prefix \"https://cloud.google.com/\" into the link for global access\ncl 295167522, get ride of synth.py hacks\n\nPiperOrigin-RevId: 295238095\n\n"
23+
"internalRef": "296451205"
2524
}
2625
},
2726
{

0 commit comments

Comments
 (0)