File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed
Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ name: java-bigquerystorage ci
99defaults :
1010 run :
1111 working-directory : java-bigquerystorage
12+ env :
13+ BUILD_SUBDIR : java-bigquerystorage
1214jobs :
1315 filter :
1416 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 3535
3636RETURN_CODE=0
3737
38+ if [[ -n " ${BUILD_SUBDIR} " ]]
39+ then
40+ echo " Running in subdir: ${BUILD_SUBDIR} "
41+ pushd " ${BUILD_SUBDIR} "
42+ fi
43+
3844case ${JOB_TYPE} in
3945 test)
4046 retry_with_backoff 3 10 \
@@ -125,6 +131,12 @@ case ${JOB_TYPE} in
125131
126132esac
127133
134+ if [[ -n " ${BUILD_SUBDIR} " ]]
135+ then
136+ echo " restoring directory"
137+ popd
138+ fi
139+
128140if [ " ${REPORT_COVERAGE} " == " true" ]; then
129141 bash ${KOKORO_GFILE_DIR} /codecov.sh
130142fi
Original file line number Diff line number Diff line change @@ -49,6 +49,12 @@ function determineMavenOpts() {
4949
5050export 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
5359retry_with_backoff 3 10 \
5460 mvn install -B -V -ntp \
@@ -57,3 +63,9 @@ retry_with_backoff 3 10 \
5763 -Dclirr.skip=true
5864
5965mvn -B dependency:analyze -DfailOnWarning=true
66+
67+ if [[ -n " ${BUILD_SUBDIR} " ]]
68+ then
69+ echo " restoring directory"
70+ popd
71+ fi
You can’t perform that action at this time.
0 commit comments