Merge pull request #59881 from cblecker/swagger-openapi-error

Automatic merge from submit-queue (batch tested with PRs 59398, 59881). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Pipe error message from openapi/swaggerspec verify checks to stderr

**What this PR does / why we need it**:
This pipes the error messages from openapi and swagger spec verify jobs to stderr so they show up in junit reports.

**Release note**:
```release-note
NONE
```
This commit is contained in:
Kubernetes Submit Queue 2018-02-19 08:49:28 -08:00 committed by GitHub
commit 064338951f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ mkdir -p "${_tmp}"
cp -a "${SPECROOT}" "${TMP_SPECROOT}" cp -a "${SPECROOT}" "${TMP_SPECROOT}"
trap "cp -a ${TMP_SPECROOT} ${SPECROOT}/..; rm -rf ${_tmp}" EXIT SIGINT trap "cp -a ${TMP_SPECROOT} ${SPECROOT}/..; rm -rf ${_tmp}" EXIT SIGINT
rm ${SPECROOT}/* rm ${SPECROOT}/*
cp ${TMP_SPECROOT}/BUILD ${SPECROOT}/BUILD cp ${TMP_SPECROOT}/BUILD ${SPECROOT}/BUILD
cp ${TMP_SPECROOT}/README.md ${SPECROOT}/README.md cp ${TMP_SPECROOT}/README.md ${SPECROOT}/README.md
"${KUBE_ROOT}/hack/update-openapi-spec.sh" "${KUBE_ROOT}/hack/update-openapi-spec.sh"
@ -46,7 +46,7 @@ if [[ $ret -eq 0 ]]
then then
echo "${SPECROOT} up to date." echo "${SPECROOT} up to date."
else else
echo "${SPECROOT} is out of date. Please run hack/update-openapi-spec.sh" echo "${SPECROOT} is out of date. Please run hack/update-openapi-spec.sh" >&2
exit 1 exit 1
fi fi

View File

@ -44,7 +44,7 @@ if [[ $ret -eq 0 ]]
then then
echo "${SPECROOT} up to date." echo "${SPECROOT} up to date."
else else
echo "${SPECROOT} is out of date. Please run hack/update-swagger-spec.sh" echo "${SPECROOT} is out of date. Please run hack/update-swagger-spec.sh" >&2
exit 1 exit 1
fi fi