services/obs-event-plugin.git
7 years agoPackage build time is parsed well now. 57/99457/1
Junghyun Kim [Wed, 23 Nov 2016 02:40:02 +0000 (11:40 +0900)]
Package build time is parsed well now.

The page build time was parsed in BuildMonitorDB.pm in src_server.

Since srcserver is located in a different machine compared to repserver,
we should move the parse process to repserver.
It is not viable to parse _statistics in plugin/notify_build_monitor of srcserver.

Change-Id: Id43bc9eeb2febae678fd23a30b9512d7b1859b02
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agonotify_trbs is added. 03/98803/1
Junghyun Kim [Mon, 21 Nov 2016 02:28:40 +0000 (11:28 +0900)]
notify_trbs is added.

Squashed commit of the following:

commit 1df40c96b6b4d5ab65c2c6adc5d94bf2aeca2679
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date:   Mon Nov 21 11:27:00 2016 +0900

    notify_trbs added.

    Change-Id: Ica3f85f33f34b6ec33611eaf2054c65bf6861401
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit 05c16aaf29841d4ff5773cba991e668fa8fe2763
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date:   Thu Nov 3 16:39:13 2016 +0900

    build_dep_graph trigger routine is added.

    Change-Id: I8e9f850f5b1352218fe089f5dc6ce1543f0c73a1
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit d120537f672c9c8a7643ccf027d3b7e799656523
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date:   Tue Nov 1 14:45:51 2016 +0900

    FIXED: typo

    Change-Id: Ia4653c6aaa1f3ca6962bbbf37dd44828fbe71789
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit e9d38f719a5f354e0fa4dd60027d753834a88dfc
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date:   Tue Nov 1 14:42:50 2016 +0900

    comments.

    Change-Id: Ib51433399588df4e64974408e05060ef43193d46
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit c1d04df1209d4a1d483fd0e4db217af6564b27c0
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date:   Tue Nov 1 14:35:42 2016 +0900

    db_conf file name changed.

    Change-Id: Ia60586b2e2cd927ce48576fe64a41e2dfe47806e
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit e651ad31075bd0fc320bce04d7d19635f6d201c0
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date:   Tue Nov 1 13:42:40 2016 +0900

    Module name changed (TerminiDB -> BuildMonitorDB)

    Change-Id: Iefff0ddde18c6b7cd95db6274ae0e5c058aa630c
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit a821ea82932f7de5a540a80706e9afa79f58c8bf
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date:   Tue Oct 25 08:24:19 2016 +0900

    build_project table is owned by OBS from now on.

    Change-Id: I8dedc64537f2fb4c2bb80a77d05e04d30f55e5da
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Change-Id: Ic205ac3194366f8812b44c18aaf659eb42b04aa4
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agonotify_buildmonitor.pm is updated from sandbox/jh0822kim/buildmonitor. 62/94762/3
Junghyun Kim [Tue, 1 Nov 2016 05:44:24 +0000 (14:44 +0900)]
notify_buildmonitor.pm is updated from sandbox/jh0822kim/buildmonitor.

Squashed commit of the following:

FIXED: typo.

commit e9d38f719a5f354e0fa4dd60027d753834a88dfc
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date:   Tue Nov 1 14:42:50 2016 +0900

    comments.

    Change-Id: Ib51433399588df4e64974408e05060ef43193d46
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit c1d04df1209d4a1d483fd0e4db217af6564b27c0
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date:   Tue Nov 1 14:35:42 2016 +0900

    db_conf file name changed.

    Change-Id: Ia60586b2e2cd927ce48576fe64a41e2dfe47806e
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit e651ad31075bd0fc320bce04d7d19635f6d201c0
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date:   Tue Nov 1 13:42:40 2016 +0900

    Module name changed (TerminiDB -> BuildMonitorDB)

    Change-Id: Iefff0ddde18c6b7cd95db6274ae0e5c058aa630c
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
commit a821ea82932f7de5a540a80706e9afa79f58c8bf
Author: Junghyun Kim <jh0822.kim@samsung.com>
Date:   Tue Oct 25 08:24:19 2016 +0900

    build_project table is owned by OBS from now on.

    Change-Id: I8dedc64537f2fb4c2bb80a77d05e04d30f55e5da
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
Change-Id: I4f06467e58f2fabb8ce2e554c1972879a0ae364e
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agotypo. 08/93408/1
Junghyun Kim [Mon, 24 Oct 2016 02:57:45 +0000 (11:57 +0900)]
typo.

Change-Id: I55bdffeae448cfdaa46bef1fa56f9e3730cdd9a1
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
7 years agonotify_buildmonitor.pm is added. 47/93247/1
Junghyun Kim [Fri, 21 Oct 2016 07:45:02 +0000 (16:45 +0900)]
notify_buildmonitor.pm is added.

You need to set BSConfig.pm like below:

our $notification_plugin = "notify_jenkins notify_termini";
our $build_monitor_db_conf = "/usr/lib/obs/server/build_monitor_db.conf";

if $build_monitor_db_conf is not defined, notify_buildmonitor.pm is disabled.

Change-Id: Ifc88b6ce49a2fd99854a866ad9cd91e74acd283c
Signed-off-by: Junghyun Kim <jh0822.kim@samsung.com>
9 years agoRemove dependency to obs-server release-0.1 release-0.1.1
Ed Bartosh [Mon, 16 Feb 2015 20:40:57 +0000 (22:40 +0200)]
Remove dependency to obs-server

This is done to avoid installation failures like this:
  Problem: nothing provides obs-server needed by
  obs-event-plugin-0.1.1-25.1.noarch

Another way to solve it is to add OBS repositories to
.extra-repos for all packages in Services repo. However,
this seems to be even worse than removing dependency to
obs-server.

Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
9 years agoGet rid of perl warnings that polluted src_server.log:
Olev Kartau [Mon, 6 Oct 2014 18:59:49 +0000 (21:59 +0300)]
Get rid of perl warnings that polluted src_server.log:

defined(@array) is deprecated at notify_jenkins.pm line 85.
defined(@array) is deprecated at notify_jenkins.pm line 90.

Indeed, checking for array defined is incorrect as it checks
for scalar integer instead of "array not empty" as we want.

Change-Id: Ib2d8078a455767de8deade30047769222268d061

10 years agoRelease 0.1.1 0.1.1
Ed Bartosh [Wed, 16 Oct 2013 13:25:42 +0000 (16:25 +0300)]
Release 0.1.1

Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
10 years agoFixed build creation issue
Ed Bartosh [Tue, 24 Sep 2013 20:52:21 +0000 (23:52 +0300)]
Fixed build creation issue

Current code caused this Jenkins error:

   Form post required [Jenkins]

   You must use POST method to trigger builds. (From scripts you may
   instead pass a per-project authentication token, or authenticate with
   your API token.)

Fixed it by using POST instead of GET HTTP request.

Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
10 years agoRelease 0.1.0 0.1.0
Ed Bartosh [Tue, 15 Oct 2013 16:36:18 +0000 (19:36 +0300)]
Release 0.1.0

Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
10 years agoFixed bug in passing 'project' to jenkins job
Ed Bartosh [Wed, 2 Oct 2013 15:40:21 +0000 (18:40 +0300)]
Fixed bug in passing 'project' to jenkins job

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>
10 years agoAdded .extra-repos with OBS repositories
Ed Bartosh [Wed, 2 Oct 2013 16:01:18 +0000 (19:01 +0300)]
Added .extra-repos with OBS repositories

Providing OBS repositories to OTC Tools Tester to be able to install OBS
during installation check.

Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
10 years agoFix packaging issue release-0.0.1
Hasan Wan [Mon, 8 Jul 2013 02:56:15 +0000 (10:56 +0800)]
Fix packaging issue

Signed-off-by: hwan <hwan@owl.bj.intel.com>
11 years agoImplement more flexible event filtering for Jenkins trigger
Olev Kartau [Mon, 15 Apr 2013 09:17:55 +0000 (12:17 +0300)]
Implement more flexible event filtering for Jenkins trigger

Regexps can be configured that control which events do
cause Jenkins trigger and which are ignored.
Note that regexp can have multiple parts which
need to be in alphabetical order, because filter code
composes one string from all hash parts and makes
single regexp comparison.

Change-Id: I1534e3a8d8e5511fdffeb2ffef21821ea1d08fa6

11 years agoOBS plugin to trigger jenkins jobs
Hasan Wan [Tue, 20 Nov 2012 02:48:16 +0000 (10:48 +0800)]
OBS plugin to trigger jenkins jobs

Change-Id: Ifd0d9aede1252b6db5295578020fc9c0fcebab8f
Signed-off-by: Hasan Wan <hasan.wan@intel.com>