Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -360,16 +360,24 @@ case ${JOB_TYPE} in

esac

if [ "${REPORT_COVERAGE}" == "true" ]; then
bash ${KOKORO_GFILE_DIR}/codecov.sh
if [[ "${REPORT_COVERAGE}" == "true" ]]; then
if [[ -n "${KOKORO_GFILE_DIR:-}" && -f "${KOKORO_GFILE_DIR:-}/codecov.sh" ]]; then
bash "${KOKORO_GFILE_DIR}/codecov.sh"
else
echo "Warning: REPORT_COVERAGE is true, but codecov.sh was not found in KOKORO_GFILE_DIR."
fi
fi

# fix output location of logs
bash .kokoro/coerce_logs.sh

if [[ "${ENABLE_FLAKYBOT}" == "true" ]]; then
chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/flakybot
${KOKORO_GFILE_DIR}/linux_amd64/flakybot -repo=googleapis/google-cloud-java
if [[ -n "${KOKORO_GFILE_DIR:-}" && -f "${KOKORO_GFILE_DIR:-}/linux_amd64/flakybot" ]]; then
chmod +x "${KOKORO_GFILE_DIR}/linux_amd64/flakybot" || true
"${KOKORO_GFILE_DIR}/linux_amd64/flakybot" -repo=googleapis/google-cloud-java
else
echo "Warning: ENABLE_FLAKYBOT is true, but flakybot binary was not found in KOKORO_GFILE_DIR."
fi
fi

echo "exiting with ${RETURN_CODE}"
Expand Down
Loading