You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2019/06/06 19:47:55 UTC

[lucene-solr] branch master updated: LUCENE-8802: buildAndPushRelease --logfile arg (#679)

This is an automated email from the ASF dual-hosted git repository.

janhoy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new df1775f  LUCENE-8802: buildAndPushRelease --logfile arg (#679)
df1775f is described below

commit df1775ffd3517c23ace582384c0554f4f521f6e0
Author: Jan Høydahl <ja...@users.noreply.github.com>
AuthorDate: Thu Jun 6 21:47:50 2019 +0200

    LUCENE-8802: buildAndPushRelease --logfile arg (#679)
---
 dev-tools/scripts/buildAndPushRelease.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dev-tools/scripts/buildAndPushRelease.py b/dev-tools/scripts/buildAndPushRelease.py
index 9f25f16..66fbd3f 100644
--- a/dev-tools/scripts/buildAndPushRelease.py
+++ b/dev-tools/scripts/buildAndPushRelease.py
@@ -17,10 +17,10 @@ import argparse
 import datetime
 import re
 import time
-import shutil
 import os
 import sys
 import subprocess
+from subprocess import TimeoutExpired
 import textwrap
 import urllib.request, urllib.error, urllib.parse
 import xml.etree.ElementTree as ET
@@ -252,6 +252,8 @@ def parse_config():
                       help='Release Candidate number.  Default: 1')
   parser.add_argument('--root', metavar='PATH', default='.',
                       help='Root of Git working tree for lucene-solr.  Default: "." (the current directory)')
+  parser.add_argument('--logfile', metavar='PATH',
+                      help='Specify log file path (default /tmp/release.log)')
   config = parser.parse_args()
 
   if not config.prepare and config.sign:
@@ -270,6 +272,9 @@ def parse_config():
   if os.system('git rev-parse') or 3 != len([d for d in ('dev-tools','lucene','solr') if os.path.isdir(d)]):
     parser.error('Root path "%s" is not a valid lucene-solr checkout' % config.root)
   os.chdir(cwd)
+  global LOG
+  if config.logfile:
+    LOG = config.logfile
 
   config.version = read_version(config.root)
   print('Building version: %s' % config.version)