source: obs_notify_generic/obs_notify_generic_config.pm@ 1268

Last change on this file since 1268 was 1191, checked in by joergs, on Jun 18, 2015 at 1:58:45 PM

run as obsrun instead of publisher (making it easier for OBS to delete outdated repositories)

File size: 3.4 KB
RevLine 
[1178]1#
2# configuration for obs_notify_generic
3#
4
5package obs_notify_generic_config;
6
7#our $logfile = "/srv/obs/log/notify_generic.log";
8#our $logfile = "/tmp/obs_notify_generic.log";
9our $cfg = {
[1189]10 'TEST_TYPE' => [
11 {
12 "log" => 1, 'filter' => { 'project' => 'myprj' , 'repo' => 'myrepo' },
13 "action" => '/tmp/test.sh $repo $project',
14 } ],
[1178]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'}
[1191]17 'action' => 'sudo -u obsrun /usr/local/bin/obs-trivial-failed-rebuild.sh $package $project --repo $repository --arch $arch',
[1178]18 },
19 ],
[1189]20 "BUILD_SUCCESS" => [ { "log" => 1,
[1178]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 },
[1185]23 {
24 "filter" => { 'project' => '.*bareos.*|internal:.*', 'package' => 'winbareos-opsi', 'repository' => 'win_cross', 'arch' => 'x86_64' },
[1191]25 "action" => 'sudo install -d $project_path/windows/opsi --owner=obsrun --group=obsrun; sudo -u obsrun /usr/local/bin/unpack_opsi_package_obs.sh $project $package $repository $arch $project_path/windows/opsi',
[1185]26 "log" => 1,
27 },
28 {
[1189]29 "filter" => { 'project' => 'bareos:master', 'package' => 'bareos-docs', 'repository' => 'Debian_8.0', 'arch' => 'x86_64' },
[1191]30 "action" => 'sudo install -d $project_path/documentation --owner=obsrun --group=obsrun; sudo -u obsrun /usr/local/bin/unpack_docs_package_obs.sh $project $package $repository $arch $project_path/documentation',
[1185]31 "log" => 1,
32 },
[1178]33 ],
[1191]34 "REPO_PUBLISH_STATE" => [ { "log" => 0,
[1178]35 #"filter" => { 'repo' => 'Debian_8.0', 'time' => 1433345412, 'project' => 'bareos:master' },
36 },
37 ],
38 "REPO_PUBLISHED" => [
39 {
[1185]40 "filter" => { 'project' => '.*bareos.*|internal:.*', },
[1178]41 #"action" => 'printf "%s\n" $project',
42 "log" => 1,
43 },
[1185]44 {
[1189]45 "filter" => { 'project' => '.*bareos.*|internal:.*', 'repo' => 'win_cross' },
[1191]46 "action" => 'sudo install -d $project_path/windows/ --owner=obsrun --group=obsrun; sudo -u obsrun /usr/local/bin/unpack_installers_windows_single_project.sh $project_path/$repo $project_path/windows/',
[1185]47 "log" => 1,
48 },
[1178]49 ],
[1189]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" => [],
[1186]57 "UNKNOWN" => [ { "log" => 1 } ],
[1178]58};
59
601;
Note: See TracBrowser for help on using the repository browser.