Changeset 1191 for obs_notify_generic


Ignore:
Timestamp:
06/18/15 13:58:45 (6 years ago)
Author:
joergs
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • obs_notify_generic/obs_notify_generic_config.pm

    r1189 r1191  
    1515    "BUILD_FAIL"         => [ { "log" => 1,
    1616            #{'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',
     17            'action' => 'sudo -u obsrun /usr/local/bin/obs-trivial-failed-rebuild.sh $package $project --repo $repository --arch $arch',
    1818        },
    1919     ],
     
    2323        {
    2424            "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',
     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',
    2626            "log"    => 1,
    2727        },
    2828        {
    2929            "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',
     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',
    3131            "log"    => 1,       
    3232        },
    3333     ],
    34     "REPO_PUBLISH_STATE" => [ { "log" => 1,
     34    "REPO_PUBLISH_STATE" => [ { "log" => 0,
    3535            #"filter" => {  'repo' => 'Debian_8.0', 'time' => 1433345412, 'project' => 'bareos:master' },
    3636        },
     
    4444        {
    4545            "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/',
     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/',
    4747            "log"    => 1,
    4848        },
Note: See TracChangeset for help on using the changeset viewer.