-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
abstract class and central propagation url overriden by the trigger c…
…lass
- Loading branch information
Showing
11 changed files
with
87 additions
and
60 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
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
31 changes: 31 additions & 0 deletions
31
...ava/io/jenkins/plugins/bitbucketpushandpullrequest/action/BitBucketPPRActionAbstract.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,31 @@ | ||
package io.jenkins.plugins.bitbucketpushandpullrequest.action; | ||
|
||
import hudson.model.InvisibleAction; | ||
import io.jenkins.plugins.bitbucketpushandpullrequest.config.BitBucketPPRPluginConfig; | ||
|
||
import static org.apache.commons.lang3.ObjectUtils.isEmpty; | ||
|
||
public class BitBucketPPRActionAbstract extends InvisibleAction { | ||
private String propagationUrl = ""; | ||
|
||
public BitBucketPPRActionAbstract() { | ||
if (!isEmpty(getGlobalConfig().propagationUrl)) { | ||
this.setPropagationUrl(getGlobalConfig().propagationUrl); | ||
} | ||
} | ||
|
||
private static final BitBucketPPRPluginConfig globalConfig = | ||
BitBucketPPRPluginConfig.getInstance(); | ||
|
||
public BitBucketPPRPluginConfig getGlobalConfig() { | ||
return globalConfig; | ||
} | ||
|
||
public void setPropagationUrl(String propagationUrl) { | ||
this.propagationUrl = propagationUrl; | ||
} | ||
|
||
public String getPropagationUrl() { | ||
return propagationUrl; | ||
} | ||
} |
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
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
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
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