Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed incompatibility between Jabber and IRC plugin regarding configu…
…ration parameters [JENKINS-10589]
- Loading branch information
Showing
4 changed files
with
56 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/main/java/hudson/plugins/im/config/ParameterNames.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package hudson.plugins.im.config; | ||
|
||
/** | ||
* Parameter names for the configuration pages. | ||
* | ||
* @author kutzi | ||
*/ | ||
public abstract class ParameterNames { | ||
|
||
protected abstract String getPrefix(); | ||
|
||
public String getStrategy() { | ||
return getPrefix() + "strategy"; | ||
} | ||
|
||
public String getNotifyStart() { | ||
return getPrefix() + "notifyStart"; | ||
} | ||
|
||
public String getNotifySuspects() { | ||
return getPrefix() + "notifySuspects"; | ||
} | ||
|
||
public String getNotifyCulprits() { | ||
return getPrefix() + "notifyCulprits"; | ||
} | ||
|
||
public String getNotifyFixers() { | ||
return getPrefix() + "notifyFixers"; | ||
} | ||
public String getNotifyUpstreamCommitters() { | ||
return getPrefix() + "notifyUpstreamCommitters"; | ||
} | ||
|
||
public String getJenkinsLogin() { | ||
return getPrefix() + "jenkinsLogin"; | ||
} | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters