Skip to content

Commit 262d5d7

Browse files
authored
ci: linkage monitor Kokoro build config for google-auth-library-java (#405)
* Linkage Monitor configuration * Updating repository name * empty commit
1 parent 0c32610 commit 262d5d7

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.kokoro/linkage-monitor.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
# Copyright 2019 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
set -eo pipefail
17+
# Display commands being run.
18+
set -x
19+
20+
cd github/google-auth-library-java/
21+
22+
# Print out Java version
23+
java -version
24+
echo ${JOB_TYPE}
25+
26+
mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V
27+
28+
# Kokoro job cloud-opensource-java/ubuntu/linkage-monitor-gcs creates this JAR
29+
JAR=linkage-monitor-latest-all-deps.jar
30+
curl -v -O "https://storage.googleapis.com/cloud-opensource-java-linkage-monitor/${JAR}"
31+
32+
# Fails if there's new linkage errors compared with baseline
33+
java -jar ${JAR} com.google.cloud:libraries-bom
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
env_vars: {
4+
key: "TRAMPOLINE_IMAGE"
5+
value: "gcr.io/cloud-devrel-kokoro-resources/java8"
6+
}
7+
8+
env_vars: {
9+
key: "TRAMPOLINE_BUILD_FILE"
10+
value: "github/google-auth-library-java/.kokoro/linkage-monitor.sh"
11+
}

0 commit comments

Comments
 (0)