1 | #
|
---|
2 | # configuration for obs_notify_generic
|
---|
3 | #
|
---|
4 |
|
---|
5 | package obs_notify_generic_config;
|
---|
6 |
|
---|
7 | #our $logfile = "/srv/obs/log/notify_generic.log";
|
---|
8 | #our $logfile = "/tmp/obs_notify_generic.log";
|
---|
9 | our $cfg = {
|
---|
10 | 'TEST_TYPE' => [
|
---|
11 | {
|
---|
12 | "log" => 1, 'filter' => { 'project' => 'myprj' , 'repo' => 'myrepo' },
|
---|
13 | "action" => '/tmp/test.sh $repo $project',
|
---|
14 | } ],
|
---|
15 | "BUILD_FAIL" => [ { "log" => 1,
|
---|
16 | #{'time' => 1433345372,'arch' => 'i586','project' => 'internal-contrib','starttime' => '1433251922','endtime' => '1433251953','repository' => 'xUbuntu_12.04','verifymd5' => '8433953f4b73bd466761288c0f80e6a2','versrel' => '14.2.1.git.1433164956.fa91388-184','reason' => 'source change','release' => '184.1%{?dist}','readytime' => '1433250774','package' => 'bareos-webui','srcmd5' => 'eb58c494ef496f99f547e1aab47b7868','workerid' => 'obs-worker-hansa-2:4','rev' => '184','bcnt' => '1'}
|
---|
17 | 'action' => '/usr/local/bin/obs-trivial-failed-rebuild.sh $package $project',
|
---|
18 | },
|
---|
19 | ],
|
---|
20 | "BUILD_SUCCESS" => [ { "log" => 1,
|
---|
21 | #"filter" => {'time' => 1433345521,'arch' => 'x86_64','project' => 'home:joergs:test','starttime' => '1433345469','endtime' => '1433345520','repository' => 'SLE_12','verifymd5' => '8ed8404ad362e7095e66119a071f3eea','versrel' => '0.1-11','reason' => 'source change','release' => '11.1','readytime' => '1433345468','package' => 'test1','srcmd5' => '8ed8404ad362e7095e66119a071f3eea','workerid' => 'obs-worker-hansa-1:4','rev' => '11','bcnt' => '1'}
|
---|
22 | },
|
---|
23 | {
|
---|
24 | "filter" => { 'project' => '.*bareos.*|internal:.*', 'package' => 'winbareos-opsi', 'repository' => 'win_cross', 'arch' => 'x86_64' },
|
---|
25 | "action" => 'sudo install -d $project_path/windows/opsi --owner=publisher; sudo -u publisher /usr/local/bin/unpack_opsi_package_obs.sh $project $package $repository $arch $project_path/windows/opsi',
|
---|
26 | "log" => 1,
|
---|
27 | },
|
---|
28 | {
|
---|
29 | "filter" => { 'project' => 'bareos:master', 'package' => 'bareos-docs', 'repository' => 'Debian_8.0', 'arch' => 'x86_64' },
|
---|
30 | "action" => 'sudo -u publisher /usr/local/bin/unpack_docs_package_obs.sh $project $package $repository $arch $project_path/documentation',
|
---|
31 | "log" => 1,
|
---|
32 | },
|
---|
33 | ],
|
---|
34 | "REPO_PUBLISH_STATE" => [ { "log" => 1,
|
---|
35 | #"filter" => { 'repo' => 'Debian_8.0', 'time' => 1433345412, 'project' => 'bareos:master' },
|
---|
36 | },
|
---|
37 | ],
|
---|
38 | "REPO_PUBLISHED" => [
|
---|
39 | {
|
---|
40 | "filter" => { 'project' => '.*bareos.*|internal:.*', },
|
---|
41 | #"action" => 'printf "%s\n" $project',
|
---|
42 | "log" => 1,
|
---|
43 | },
|
---|
44 | {
|
---|
45 | "filter" => { 'project' => '.*bareos.*|internal:.*', 'repo' => 'win_cross' },
|
---|
46 | "action" => 'sudo install -d $project_path/windows/ --owner=publisher; sudo -u publisher /usr/local/bin/unpack_installers_windows_single_project.sh $project_path/$repo $project_path/windows/',
|
---|
47 | "log" => 1,
|
---|
48 | },
|
---|
49 | ],
|
---|
50 | # "SRCSRV_COMMIT" => [],
|
---|
51 | # "SRCSRV_CREATE_PACKAGE" => [],
|
---|
52 | # "SRCSRV_CREATE_PROJECT" => [],
|
---|
53 | # "SRCSRV_DELETE_PROJECT" => [],
|
---|
54 | # "SRCSRV_UPDATE_PACKAGE" => [],
|
---|
55 | # "SRCSRV_UPDATE_PROJECT" => [],
|
---|
56 | # "SRCSRV_UPDATE_PROJECT_CONFIG" => [],
|
---|
57 | "UNKNOWN" => [ { "log" => 1 } ],
|
---|
58 | };
|
---|
59 |
|
---|
60 | 1;
|
---|