Skip to content

Commit 33acaa2

Browse files
committed
try running on subdir
1 parent a66180e commit 33acaa2

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.github/workflows/java-bigquerystorage-ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ name: java-bigquerystorage ci
99
defaults:
1010
run:
1111
working-directory: java-bigquerystorage
12+
env:
13+
BUILD_SUBDIR: java-bigquerystorage
1214
jobs:
1315
filter:
1416
runs-on: ubuntu-latest

.kokoro/build.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ fi
3535

3636
RETURN_CODE=0
3737

38+
if [[ -n "${BUILD_SUBDIR}" ]]
39+
then
40+
echo "Running in subdir: ${BUILD_SUBDIR}"
41+
pushd "${BUILD_SUBDIR}"
42+
fi
43+
3844
case ${JOB_TYPE} in
3945
test)
4046
retry_with_backoff 3 10 \
@@ -125,6 +131,12 @@ case ${JOB_TYPE} in
125131

126132
esac
127133

134+
if [[ -n "${BUILD_SUBDIR}" ]]
135+
then
136+
echo "restoring directory"
137+
popd
138+
fi
139+
128140
if [ "${REPORT_COVERAGE}" == "true" ]; then
129141
bash ${KOKORO_GFILE_DIR}/codecov.sh
130142
fi

.kokoro/dependencies.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ function determineMavenOpts() {
4949

5050
export MAVEN_OPTS=$(determineMavenOpts)
5151

52+
if [[ -n "${BUILD_SUBDIR}" ]]
53+
then
54+
echo "Running in subdir: ${BUILD_SUBDIR}"
55+
pushd "${BUILD_SUBDIR}"
56+
fi
57+
5258
# this should run maven enforcer
5359
retry_with_backoff 3 10 \
5460
mvn install -B -V -ntp \
@@ -57,3 +63,9 @@ retry_with_backoff 3 10 \
5763
-Dclirr.skip=true
5864

5965
mvn -B dependency:analyze -DfailOnWarning=true
66+
67+
if [[ -n "${BUILD_SUBDIR}" ]]
68+
then
69+
echo "restoring directory"
70+
popd
71+
fi

0 commit comments

Comments
 (0)