Modify jenkins unit/integration scripts to work on branches
Also add a makefile. This will need a cherrypick onto 1.0,1.1 with edits to hack/jenkins/test-dockerized.sh to run branch-specific test scripts. Also had to modify hack/verify-api-reference.sh to handle volume mount path peculiarity when doing `docker run -v` inside a container started with `docker run -v`. See associated comment in hack/jenkins/test-dockerized.sh
This commit is contained in:
@@ -22,14 +22,15 @@ set -o nounset
|
||||
set -o pipefail
|
||||
|
||||
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
|
||||
DEFAULT_OUTPUT_PATH="$PWD/${KUBE_ROOT}/docs/api-reference"
|
||||
REPO_DIR=${REPO_DIR:-"${PWD}/${KUBE_ROOT}"}
|
||||
DEFAULT_OUTPUT_PATH="${REPO_DIR}/docs/api-reference"
|
||||
OUTPUT=${1:-${DEFAULT_OUTPUT_PATH}}
|
||||
|
||||
echo "Generating api reference docs at ${OUTPUT}"
|
||||
|
||||
V1_PATH="${OUTPUT}/v1/"
|
||||
V1BETA1_PATH="${OUTPUT}/extensions/v1beta1"
|
||||
SWAGGER_PATH="$PWD/${KUBE_ROOT}/api/swagger-spec/"
|
||||
SWAGGER_PATH="${REPO_DIR}/api/swagger-spec/"
|
||||
|
||||
echo "Reading swagger spec from: ${SWAGGER_PATH}"
|
||||
|
||||
|
Reference in New Issue
Block a user