Line | |
---|
1 | #!/usr/bin/env perl
|
---|
2 |
|
---|
3 | use strict;
|
---|
4 | use warnings;
|
---|
5 | use Data::Dumper;
|
---|
6 | use obs_notify_generic;
|
---|
7 |
|
---|
8 | my $notify = obs_notify_generic->new();
|
---|
9 | $notify->notify(
|
---|
10 | "REPO_PUBLISHED",
|
---|
11 | {
|
---|
12 | 'project' => 'bareos:master',
|
---|
13 | 'package' => 'bareos-doc'
|
---|
14 | }
|
---|
15 | );
|
---|
16 |
|
---|
17 | $notify->notify(
|
---|
18 | "XYZ",
|
---|
19 | {
|
---|
20 | 'project' => 'bareos',
|
---|
21 | 'package' => 'bareos-doc'
|
---|
22 | }
|
---|
23 | );
|
---|
24 |
|
---|
25 | $notify->notify(
|
---|
26 | "TEST",
|
---|
27 | {
|
---|
28 | 'project' => 'bareos',
|
---|
29 | 'package' => 'bareos-doc'
|
---|
30 | }
|
---|
31 | );
|
---|
32 | $notify->notify(
|
---|
33 | "SRCSRV_COMMIT",
|
---|
34 | {
|
---|
35 | 'project' => 'bareos',
|
---|
36 | 'package' => 'bareos-doc'
|
---|
37 | }
|
---|
38 | );
|
---|
39 |
|
---|
40 | #print Dumper( $notify->cfg );
|
---|
Note:
See
TracBrowser
for help on using the repository browser.