From: Ed Bartosh Date: Wed, 3 Apr 2013 09:02:26 +0000 (+0300) Subject: Used GERRIT_PROJECT instead of GIT_PROJECT X-Git-Tag: 0.12~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=74760a929d773e84d9673ceb1cbe6c3fe370b24b;p=services%2Fjenkins-scripts.git Used GERRIT_PROJECT instead of GIT_PROJECT Environment variable GIT_PROJECT is not set by Gerrit Trigger plugin. Let's use GERRIT_PROJECT instead. Change-Id: Iff76c49c008c557a8cb9f3e2b444e9b0f6613724 Signed-off-by: Ed Bartosh --- diff --git a/job_pre_release_gerrit.py b/job_pre_release_gerrit.py index ec3a1d6..f4cd67e 100755 --- a/job_pre_release_gerrit.py +++ b/job_pre_release_gerrit.py @@ -68,7 +68,7 @@ def main(): obs_api = os.getenv("OBS_API_URL") obs_user = os.getenv("OBS_API_USERNAME") obs_passwd = os.getenv("OBS_API_PASSWD") - git_project = os.getenv("GIT_PROJECT") + gerrit_project = os.getenv("GERRIT_PROJECT") gerrit_refname = os.getenv("GERRIT_REFNAME") # Triggered by Gerrit - use GERRIT_REFNAME to get tag @@ -84,12 +84,12 @@ def main(): projectbuild = ProjectBuildService(project, obs_api, obs_user, obs_passwd) prerelease = PreRelease(obs_target_prj, obs_user, - git_tag, git_project, projectbuild) + git_tag, gerrit_project, projectbuild) if is_ref_deleted(os.getenv("GERRIT_OlDREV"), os.getenv("GERRIT_NEWREV")): cleanup(prerelease) else: - create(prerelease, git_project) + create(prerelease, gerrit_project) if __name__ == '__main__': try: