From 5c02e7f123a3f5f0b271fb811cf0245a660e9536 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Fri, 25 Sep 2015 16:37:31 -0700 Subject: [PATCH] Update script to re-generate swagger. --- build/mark-new-version.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/mark-new-version.sh b/build/mark-new-version.sh index 7bc473adeaa44..d1534e69ce1c2 100755 --- a/build/mark-new-version.sh +++ b/build/mark-new-version.sh @@ -92,6 +92,10 @@ fi echo "+++ Running ./versionize-docs" ${KUBE_ROOT}/build/versionize-docs.sh ${NEW_VERSION} + +echo "+++ Updating swagger" +${KUBE_ROOT}/hack/update-generated-swagger-docs.sh + git commit -am "Versioning docs and examples for ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}" VERSION_FILE="${KUBE_ROOT}/pkg/version/base.go" @@ -103,6 +107,7 @@ $SED -ri -e "s/gitMinor\s+string = \"[^\"]*\"/gitMinor string = \"${GIT_MINOR}\" $SED -ri -e "s/gitVersion\s+string = \"[^\"]*\"/gitVersion string = \"$NEW_VERSION-${release_branch}+\$Format:%h\$\"/" "${VERSION_FILE}" gofmt -s -w "${VERSION_FILE}" + echo "+++ Committing version change" git add "${VERSION_FILE}" git commit -m "Kubernetes version $NEW_VERSION"