Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F28985571
JenkinsPayloadAnalyzerConfiguration.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
JenkinsPayloadAnalyzerConfiguration.php
View Options
<?php
namespace
Nasqueron\Notifications\Analyzers\Jenkins
;
class
JenkinsPayloadAnalyzerConfiguration
{
///
/// Private members
///
/**
* The project this configuration is for
*
* @var string
*/
private
$project
;
///
/// Public properties
///
/**
* The default group to fallback for any event not mapped in another group
*
* @var string
*/
public
$defaultGroup
;
/**
* An array of RepositoryGroupMapping objects to match jobs & groups
*
* @var \Nasqueron\Notifications\Analyzers\ItemGroupMapping[]
*/
public
$groupsMapping
;
/**
* @var string[]
*/
public
$notifyOnlyOnFailureJobs
;
///
/// Constructor
///
/**
* Initializes a new instance of the GitHubPayloadAnalyzerConfiguration class
*
* @param string $project The project name this configuration is related to
*/
public
function
__construct
(
$project
)
{
$this
->
project
=
$project
;
}
///
/// Helper methods
///
/**
* Gets the default group
*
* @return string the default group, as set in the configuration,
* or if omitted, the project name as fallback.
*/
public
function
getDefaultGroup
()
{
if
(
empty
(
$this
->
defaultGroup
))
{
return
strtolower
(
$this
->
project
);
}
return
$this
->
defaultGroup
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, May 17, 19:07 (1 d, 7 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3685059
Default Alt Text
JenkinsPayloadAnalyzerConfiguration.php (1 KB)
Attached To
Mode
rNOTIF Notifications center
Attached
Detach File
Event Timeline
Log In to Comment