gbs-service: enable 'error-pkg' parameter
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Mon, 7 Jul 2014 08:11:09 +0000 (11:11 +0300)
committerLin A Yang <lin.a.yang@intel.com>
Fri, 11 Jul 2014 06:52:16 +0000 (09:52 +0300)
Enable the the generation of a special "error package" (instead of a
service error) in case of gbs export failures.

Only catches service return value 2, i.e. "normal" gbs export failures.
Internal service errors (1) and gbs crashes (3) still cause a service
error as these can be considered as bugs and we want to catch these.

Change-Id: Ied7bc8010351026e047e368be97bb71a9da3ee1e
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
common/upload_service.py

index 37e4b5f..27cdea4 100644 (file)
@@ -30,6 +30,7 @@ def upload_obs_service(git_url, git_project, git_tag,
             "<param name='revision'>%s</param>" \
             "<param name='url'>%s</param>" \
             "<param name='git-meta'>_git-meta</param>" \
+            "<param name='error-pkg'>2</param>" \
             "</service></services>" % \
                 (git_revision, os.path.join(git_url, git_project))
     fname = '_service'