Enable trigger_next to sync 52/136152/2
authorYonghee Han <onstudy@samsung.com>
Wed, 28 Jun 2017 08:42:03 +0000 (17:42 +0900)
committerYonghee Han <onstudy@samsung.com>
Wed, 28 Jun 2017 09:04:17 +0000 (09:04 +0000)
Bugfix : Can not sync to mirror server.
Solution : Add trigger_next to sync

Change-Id: If1521666a07ac9ed0a4eba328a737235629d9157

job_release_snapshot.py

index c13908f..ea6ac4b 100755 (executable)
@@ -111,6 +111,12 @@ def main():
                  'snapshot_name':release_id,
                  'release_type':release_type,
                  'version':version})
+
+    # TRIGGER NEXT RSYNC-DOWNLOAD (MIRROR)
+    if os.getenv("RSYNC_DOWNLOAD_ENABLED", "0") != "0":
+        trigger_next('RSYNC_DOWNLOAD', {'repo_path': path_release_snapshot,
+                                        'project': obs_project})
+
 if __name__ == '__main__':
 
     sys.exit(main())