[1178] | 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 | "UNKNOWN" => [ { "log" => 1 } ],
|
---|
| 11 | "BUILD_FAIL" => [ { "log" => 1,
|
---|
| 12 | #{'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'}
|
---|
| 13 | 'action' => '/usr/local/bin/obs-trivial-failed-rebuild.sh $package $project',
|
---|
| 14 | },
|
---|
| 15 | ],
|
---|
| 16 | "BUILD_SUCCESS" => [ { "log" => 0,
|
---|
| 17 | #"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'}
|
---|
| 18 | },
|
---|
| 19 | ],
|
---|
| 20 | "REPO_PUBLISH_STATE" => [ { "log" => 0,
|
---|
| 21 | #"filter" => { 'repo' => 'Debian_8.0', 'time' => 1433345412, 'project' => 'bareos:master' },
|
---|
| 22 | },
|
---|
| 23 | ],
|
---|
| 24 | "REPO_PUBLISHED" => [
|
---|
| 25 | {
|
---|
| 26 | "filter" => { 'project' => '.*bareos.*', },
|
---|
| 27 | #"action" => 'printf "%s\n" $project',
|
---|
| 28 | "log" => 1,
|
---|
| 29 | },
|
---|
| 30 | ],
|
---|
| 31 | "SRCSRV_COMMIT" => [],
|
---|
| 32 | "SRCSRV_CREATE_PACKAGE" => [],
|
---|
| 33 | "SRCSRV_CREATE_PROJECT" => [],
|
---|
| 34 | "SRCSRV_DELETE_PROJECT" => [],
|
---|
| 35 | "SRCSRV_UPDATE_PACKAGE" => [],
|
---|
| 36 | "SRCSRV_UPDATE_PROJECT" => [],
|
---|
| 37 | "SRCSRV_UPDATE_PROJECT_CONFIG" => [],
|
---|
| 38 | };
|
---|
| 39 |
|
---|
| 40 | 1;
|
---|