description : disable a build flag before upload service and enable a build flag... 16/70216/1
authorYonghee Han <onstudy@samsung.com>
Wed, 18 May 2016 22:15:33 +0000 (07:15 +0900)
committerYonghee Han <onstudy@samsung.com>
Wed, 18 May 2016 22:15:33 +0000 (07:15 +0900)
    file : job_submit.py

Change-Id: Ic7052d4c01048c8693c28da5c19055b875fab5da

job_submit.py

index 54e1688..4d16c13 100755 (executable)
@@ -142,6 +142,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, repo = None, flag="build", status="disable")
+
     try:
         upload_obs_service(git_url, git_project, git_tag,
                            git_revision, obs_project, build, package)
@@ -157,6 +160,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.