mirror of https://github.com/apache/lucene.git
LUCENE-4429: smokeTestRelease requires version is format X.Y.Z[-ALPHA|-BETA]
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1390163 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fea15e75a4
commit
7152625e73
|
@ -249,7 +249,7 @@
|
||||||
<property name="python32.exe" value="python3.2" />
|
<property name="python32.exe" value="python3.2" />
|
||||||
<property name="fakeRelease" value="lucene/build/fakeRelease"/>
|
<property name="fakeRelease" value="lucene/build/fakeRelease"/>
|
||||||
<property name="fakeReleaseTmp" value="lucene/build/fakeReleaseTmp"/>
|
<property name="fakeReleaseTmp" value="lucene/build/fakeReleaseTmp"/>
|
||||||
<property name="fakeReleaseVersion" value="5.0"/> <!-- *not* -SNAPSHOT, the real version -->
|
<property name="fakeReleaseVersion" value="5.0.0"/> <!-- *not* -SNAPSHOT, the real version -->
|
||||||
|
|
||||||
<target name="nightly-smoke" description="Builds an unsigned release and smoke tests it" depends="clean">
|
<target name="nightly-smoke" description="Builds an unsigned release and smoke tests it" depends="clean">
|
||||||
<sequential>
|
<sequential>
|
||||||
|
|
|
@ -1106,6 +1106,8 @@ def crawl(downloadedFiles, urlString, targetDir, exclusions=set()):
|
||||||
downloadedFiles.append(path)
|
downloadedFiles.append(path)
|
||||||
sys.stdout.write('.')
|
sys.stdout.write('.')
|
||||||
|
|
||||||
|
reAllowedVersion = re.compile(r'^\d+\.\d+\.\d+(-ALPHA|-BETA)?$')
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
||||||
if len(sys.argv) < 4:
|
if len(sys.argv) < 4:
|
||||||
|
@ -1116,6 +1118,10 @@ def main():
|
||||||
|
|
||||||
baseURL = sys.argv[1]
|
baseURL = sys.argv[1]
|
||||||
version = sys.argv[2]
|
version = sys.argv[2]
|
||||||
|
|
||||||
|
if not reAllowedVersion.match(version):
|
||||||
|
raise RuntimeError('version "%s" does not match format X.Y.Z[-ALPHA|-BETA]' % version)
|
||||||
|
|
||||||
tmpDir = os.path.abspath(sys.argv[3])
|
tmpDir = os.path.abspath(sys.argv[3])
|
||||||
isSigned = True
|
isSigned = True
|
||||||
if len(sys.argv) == 5:
|
if len(sys.argv) == 5:
|
||||||
|
|
Loading…
Reference in New Issue