From ec5ab866cd0621aed570ed9ef23cefbd21ddfb83 Mon Sep 17 00:00:00 2001 From: Yonghee Han Date: Thu, 14 Apr 2016 19:44:21 +0900 Subject: [PATCH] description : disable a build flag before upload service and enable a build flag after link project file : job_submit.py Change-Id: Icdbf9edac7da0cb31c6a4b7f7729cf1fb3dbff7a --- job_submit.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/job_submit.py b/job_submit.py index 7e180ca..3560d29 100755 --- a/job_submit.py +++ b/job_submit.py @@ -128,6 +128,9 @@ def create_project(git_url, git_project, git_tag, git_revision, build, # change release name of project config in OBS change_release_name(build, obs_project, git_tag) + #disable build flag + build.disable_build_flag(obs_project, flag="build", repo = None, status="disable") + try: upload_obs_service(git_url, git_project, git_tag, git_revision, obs_project, build, package) @@ -143,6 +146,10 @@ def create_project(git_url, git_project, git_tag, git_revision, build, #create the 'link' package that relate the original package create_related_packages(build, obs_target_prj, obs_project, package) + #default build flag + build.default_build_flag(obs_project, repo = None, flag="build") + + def get_branch_name(tag): """Get branch name by parsing info from submit tag name. -- 2.7.4