Changeset 1186 for obs_notify_generic
- Timestamp:
- Jun 12, 2015, 4:52:50 PM (9 years ago)
- Location:
- obs_notify_generic
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
obs_notify_generic/obs_notify_generic_config.pm
r1185 r1186 8 8 #our $logfile = "/tmp/obs_notify_generic.log"; 9 9 our $cfg = { 10 "UNKNOWN" => [ { "log" => 1 } ],11 10 "BUILD_FAIL" => [ { "log" => 1, 12 11 #{'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'} … … 19 18 { 20 19 "filter" => { 'project' => '.*bareos.*|internal:.*', 'package' => 'winbareos-opsi', 'repository' => 'win_cross', 'arch' => 'x86_64' }, 21 "action" => ' install -d $project_path/windows/opsi --owner=publisher; su -publisher /usr/local/bin/unpack_opsi_package_obs.sh $project $package $repository $arch $project_path/windows/opsi',20 "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', 22 21 "log" => 1, 23 22 }, 24 23 { 25 24 "filter" => { 'project' => 'bareos:master', 'package' => 'bareos-docs', 'repository' => 'Debian_8.0', 'arch' => 'x86_64' }, 26 "action" => 'su -publisher /usr/local/bin/unpack_docs_package_obs.sh $project $package $repository $arch $project_path/documentation',25 "action" => 'sudo -u publisher /usr/local/bin/unpack_docs_package_obs.sh $project $package $repository $arch $project_path/documentation', 27 26 "log" => 1, 28 27 }, … … 40 39 { 41 40 "filter" => { 'project' => '.*bareos.*|internal:.*', 'repository' => 'win_cross' }, 42 "action" => ' /usr/local/bin/unpack_installers_windows_single_project.sh $project_path/$repository $project_path/windows/',41 "action" => 'sudo install -d $project_path/windows/ --owner=publisher; sudo -u publisher /usr/local/bin/unpack_installers_windows_single_project.sh $project_path/$repository $project_path/windows/', 43 42 "log" => 1, 44 43 }, … … 51 50 "SRCSRV_UPDATE_PROJECT" => [], 52 51 "SRCSRV_UPDATE_PROJECT_CONFIG" => [], 52 "UNKNOWN" => [ { "log" => 1 } ], 53 53 }; 54 54 -
obs_notify_generic/obs_send_notification.pl
r1183 r1186 9 9 use BSNotify; 10 10 use Data::Dumper; 11 12 # 13 # run this 14 # as user 15 # obsrun 16 # in directory 17 # /usr/lib/obs/server 18 # 11 19 12 20 sub notify {
Note:
See TracChangeset
for help on using the changeset viewer.