Repository: yetus Updated Branches: refs/heads/master 08637f9a0 -> 53b837bbe
YETUS-251. default patch-naming-rule points to old yetus url. Signed-off-by: Allen Wittenauer <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/yetus/repo Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/53b837bb Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/53b837bb Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/53b837bb Branch: refs/heads/master Commit: 53b837bbe939c41c584e0ca2fc2b3f059735356e Parents: 08637f9 Author: Marco Zuehlke <[email protected]> Authored: Fri Jan 1 11:13:44 2016 +0100 Committer: Allen Wittenauer <[email protected]> Committed: Mon Jan 4 22:33:58 2016 -0800 ---------------------------------------------------------------------- precommit/test-patch.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/yetus/blob/53b837bb/precommit/test-patch.sh ---------------------------------------------------------------------- diff --git a/precommit/test-patch.sh b/precommit/test-patch.sh index 4d9e4c0..f2f9c59 100755 --- a/precommit/test-patch.sh +++ b/precommit/test-patch.sh @@ -54,9 +54,20 @@ TP_FOOTER_COUNTER=0 ## @replaceable no function setup_defaults { + declare version="in-progress" + common_defaults - PATCH_NAMING_RULE="https://yetus.apache.org/documentation/latest/precommit-patchnames" + if [[ -f "${BINDIR}/../VERSION" ]]; then + version=$(cat "${BINDIR}/../VERSION") + elif [[ -f "${BINDIR}/VERSION" ]]; then + version=$(cat "${BINDIR}/VERSION") + fi + if [[ ${version} =~ SNAPSHOT$ ]]; then + version="in-progress" + fi + + PATCH_NAMING_RULE="https://yetus.apache.org/documentation/${version}/precommit-patchnames" INSTANCE=${RANDOM} RELOCATE_PATCH_DIR=false
