Migrate CI to Jenkins on 7.x branch (#1114)

This commit is contained in:
Seth Michael Larson
2020-02-27 10:13:49 -06:00
committed by GitHub
parent 1bda6aca8a
commit 2c7ea70201
24 changed files with 594 additions and 161 deletions
+5 -5
View File
@@ -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)