Changeset 1186 for obs_notify_generic


Ignore:
Timestamp:
06/12/15 16:52:50 (6 years ago)
Author:
joergs
Message:

added run notes (as user obsrun, in directory /usr/lib/obs/server/

Location:
obs_notify_generic
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • obs_notify_generic/obs_notify_generic_config.pm

    r1185 r1186  
    88#our $logfile = "/tmp/obs_notify_generic.log";
    99our $cfg     = {
    10     "UNKNOWN"            => [ { "log" => 1 } ],
    1110    "BUILD_FAIL"         => [ { "log" => 1,
    1211            #{'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'}
     
    1918        {
    2019            "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',
    2221            "log"    => 1,
    2322        },
    2423        {
    2524                        "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',
    2726            "log"    => 1,       
    2827        },
     
    4039        {
    4140            "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/',
    4342            "log"    => 1,
    4443        },
     
    5150    "SRCSRV_UPDATE_PROJECT"        => [],
    5251    "SRCSRV_UPDATE_PROJECT_CONFIG" => [],
     52    "UNKNOWN"                      => [ { "log" => 1 } ],
    5353};
    5454
  • obs_notify_generic/obs_send_notification.pl

    r1183 r1186  
    99use BSNotify;
    1010use Data::Dumper;
     11
     12#
     13# run this
     14# as user
     15# obsrun
     16# in directory
     17# /usr/lib/obs/server
     18#
    1119
    1220sub notify {
Note: See TracChangeset for help on using the changeset viewer.