Fix weekly release funtion
authorYonghee Han <onstudy@samsung.com>
Thu, 20 Sep 2018 10:40:06 +0000 (19:40 +0900)
committerYonghee Han <onstudy@samsung.com>
Thu, 31 Jan 2019 01:21:23 +0000 (10:21 +0900)
Problem : Weekly release Error when there is no snapshot.
Solve : Replace snapshot url to release/daily url

Change-Id: Ibc5ad80e8518d03ef5b4b0f6e5920f675be08218

job_release_snapshot.py

index f1e17e7..49a87a9 100755 (executable)
@@ -70,9 +70,11 @@ def main():
     # make sure the source dir is exists
 
     if not os.path.exists(path_repo_snapshot):
-        print("The snapshot %s of %s doesn't exists on download server"
-              %(release_id, release_profile))
-        return -1
+        path_repo_snapshot = path_repo_snapshot.replace('snapshots','releases/daily')
+        if not os.path.exists(path_repo_snapshot):
+            print("The snapshot %s of %s doesn't exists on download server"
+                  %(release_id, release_profile))
+            return -1
 
     # figure out the release destination dir
     release_dir = "releases/%s" % release_type