From: SoonKyu Park Date: Thu, 5 Jan 2017 02:25:51 +0000 (+0900) Subject: Revert " solve create ks file error" X-Git-Tag: submit/trunk/20190927.012743~574^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27881604653898acb51a6eadd63f42d4c47c64c6;p=services%2Fjenkins-scripts.git Revert " solve create ks file error" This reverts commit 76c09eae02c8088cfa96dd5b73d0afd6053a5c1f. --- diff --git a/job_create_snapshot.py b/job_create_snapshot.py index 4dfbbdd..b536854 100755 --- a/job_create_snapshot.py +++ b/job_create_snapshot.py @@ -58,12 +58,9 @@ def prepare_trigger_data(images, build_id, path_repo, project, name = ksname.replace('.ks', '') if download_host: # replace host name - kickstart = re.sub('^(repo .*--baseurl=)([^:]+://[^/]+)(/.*)', - '\\1%s\\3' % download_host, kickstart, + kickstart = re.sub('^(repo .*--baseurl=[^:]+://)[^/]+(/.*)', + '\\1%s\\2' % download_host, kickstart, count=1, flags=re.MULTILINE) - # kickstart = re.sub('^(repo .*--baseurl=[^:]+://)[^/]+(/.*)', - # '\\1%s\\2' % download_host, kickstart, - # count=1, flags=re.MULTILINE) data = {'name': name, 'kickstart': kickstart, 'buildid': build_id,