Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIXED JENKINS-19256] add support for JBoss 6 and add "AS" to display…
… names
- Loading branch information
Showing
5 changed files
with
41 additions
and
5 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
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
27 changes: 27 additions & 0 deletions
27
src/main/java/hudson/plugins/deploy/jboss/JBoss6xAdapter.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,27 @@ | ||
package hudson.plugins.deploy.jboss; | ||
|
||
import hudson.Extension; | ||
import hudson.plugins.deploy.ContainerAdapterDescriptor; | ||
|
||
import org.kohsuke.stapler.DataBoundConstructor; | ||
|
||
public class JBoss6xAdapter extends JBossAdapter { | ||
@DataBoundConstructor | ||
public JBoss6xAdapter(String url, String password, String userName) { | ||
super(url, password, userName); | ||
} | ||
|
||
@Override | ||
public String getContainerId() { | ||
return "jboss6x"; | ||
} | ||
|
||
|
||
@Extension | ||
public static final class DescriptorImpl extends ContainerAdapterDescriptor { | ||
@Override | ||
public String getDisplayName() { | ||
return "JBoss AS 6.x"; | ||
} | ||
} | ||
} |
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