#### STATE TRANSISTION ####
###########################
# 1 - queued (queued)
-# 2 - build_0 (build_started)
-# 3 - build_1 (build_finished)
-# 4 - repo_0 (snapshot_started)
-# 5 - repo_1 (snapshot_finished)
-# 6 - image_0 (image_started)
-# 7 - image_1 (image_finished)
-# 8 - test_0 (test_started)
-# 9 - test_1 (test_finished)
-# 10 - completed (completed)
+# 2 - build_0 (build_queued)
+# 3 - build_1 (build_started)
+# 4 - build_2 (build_finished)
+# 5 - repo_0 (snapshot_queued)
+# 6 - repo_1 (snapshot_started)
+# 7 - repo_2 (snapshot_finished)
+# 8 - image_0 (image_queued)
+# 9 - image_1 (image_started)
+# 10 - image_2 (image_finished)
+# 11 - test_0 (test_queued)
+# 12 - test_1 (test_started)
+# 13 - test_2 (test_finished)
+# 14 - completed (completed)
###########################
class LocalError(Exception):
_set_stage(gbs_inst, "queued", content)
gbs_inst.set_packages(tag, packages)
-def fn_build_started(gbs_inst, content):
+def fn_build_queued(gbs_inst, content):
_set_stage(gbs_inst, "build_0", content)
return
-def fn_build_finished(gbs_inst, content):
+def fn_build_started(gbs_inst, content):
_set_stage(gbs_inst, "build_1", content)
return
-def fn_snapshot_started(gbs_inst, content):
+def fn_build_finished(gbs_inst, content):
+ _set_stage(gbs_inst, "build_2", content)
+ return
+
+def fn_snapshot_queued(gbs_inst, content):
_set_stage(gbs_inst, "repo_0", content)
return
-def fn_snapshot_finished(gbs_inst, content):
+def fn_snapshot_started(gbs_inst, content):
_set_stage(gbs_inst, "repo_1", content)
return
-def fn_image_started(gbs_inst, content):
+def fn_snapshot_finished(gbs_inst, content):
+ _set_stage(gbs_inst, "repo_2", content)
+ return
+
+def fn_image_queued(gbs_inst, content):
_set_stage(gbs_inst, "image_0", content)
return
-def fn_image_finished(gbs_inst, content):
+def fn_image_started(gbs_inst, content):
_set_stage(gbs_inst, "image_1", content)
return
-def fn_test_started(gbs_inst, content):
+def fn_image_finished(gbs_inst, content):
+ _set_stage(gbs_inst, "image_2", content)
+ return
+
+def fn_test_queued(gbs_inst, content):
_set_stage(gbs_inst, "test_0", content)
return
-def fn_test_finished(gbs_inst, content):
+def fn_test_started(gbs_inst, content):
_set_stage(gbs_inst, "test_1", content)
return
+def fn_test_finished(gbs_inst, content):
+ _set_stage(gbs_inst, "test_2", content)
+ return
+
def fn_completed(gbs_inst, content):
_set_stage(gbs_inst, "completed", content)
return
callback_func_table = {
"queued" : fn_queued,
+ "build_queued" : fn_build_queued,
"build_started" : fn_build_started,
"build_finished" : fn_build_finished,
+ "snapshot_queued" : fn_snapshot_queued,
"snapshot_started" : fn_snapshot_started,
"snapshot_finished": fn_snapshot_finished,
+ "image_queued" : fn_image_queued,
"image_started" : fn_image_started,
"image_finished" : fn_image_finished,
+ "test_queued" : fn_test_queued,
"test_started" : fn_test_started,
"test_finished" : fn_test_finished,
"completed" : fn_completed,