Migrate CI to Jenkins on 7.x branch (#1114)
This commit is contained in:
@@ -21,10 +21,10 @@ def fetch_es_repo():
|
||||
|
||||
# no repo
|
||||
if not exists(repo_path) or not exists(join(repo_path, ".git")):
|
||||
print("No elasticsearch repo found...")
|
||||
# set YAML DIR to empty to skip yaml tests
|
||||
environ["TEST_ES_YAML_DIR"] = ""
|
||||
return
|
||||
subprocess.check_call(
|
||||
"git clone https://github.com/elastic/elasticsearch %s" % repo_path,
|
||||
shell=True,
|
||||
)
|
||||
|
||||
# set YAML test dir
|
||||
environ["TEST_ES_YAML_DIR"] = join(
|
||||
@@ -53,7 +53,7 @@ def fetch_es_repo():
|
||||
% repo_path,
|
||||
shell=True,
|
||||
)
|
||||
# reset to the version fron info()
|
||||
# reset to the version from info()
|
||||
subprocess.check_call("cd %s && git fetch" % repo_path, shell=True)
|
||||
subprocess.check_call("cd %s && git reset --hard %s" % (repo_path, sha), shell=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user