Fixed bug in passing 'project' to jenkins job
authorEd Bartosh <eduard.bartosh@intel.com>
Wed, 2 Oct 2013 15:40:21 +0000 (18:40 +0300)
committerEd Bartosh <eduard.bartosh@intel.com>
Wed, 2 Oct 2013 16:06:33 +0000 (19:06 +0300)
project variable is properly set, but was not used in the code. The
result is that project is not passed to jenkins job and some events have
not been processed because of that.

Here is example of this issue taken from production log:
notify: trigger Jenkins uri=[http://user:pass@host:8080/robot/job/obs-event-dispatcher/buildWithParameters]
para=[project= event_type=OBS_SRCSRV_REQUEST_ACCEPTED para=...

Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
notify_jenkins.pm

index 0e9c3d1..5adce25 100644 (file)
@@ -112,7 +112,7 @@ sub notify() {
       return;
   }
 
-  my @para = ("project=$args->{'project'}",
+  my @para = ("project=$project",
               "event_type=$type",
               "para=" . encode_base64(encode_json($args),''));
   print "notify: trigger Jenkins uri=[$jenkinsuri] para=[@para]\n";