Package hudson.plugins.collabnet
Class AbstractTeamForgeNotifier
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Notifier
-
- hudson.plugins.collabnet.AbstractTeamForgeNotifier
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
- Direct Known Subclasses:
CNDocumentUploader
,CNFileRelease
,CNTracker
public abstract class AbstractTeamForgeNotifier extends Notifier
Base class forNotifier
s that talk to CollabNet TeamForge.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractTeamForgeNotifier.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description AbstractTeamForgeNotifier(ConnectionFactory connectionFactory, String project)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CollabNetApp
connect()
Connects to the TeamForge.String
getCollabNetUrl()
ConnectionFactory
getConnectionFactory()
If this notifier is configured with a separate credential, return it.String
getPassword()
String
getProject()
static TeamForgeShare.TeamForgeShareDescriptor
getTeamForgeShareDescriptor()
String
getUsername()
boolean
overrideAuth()
-
Methods inherited from class hudson.tasks.Notifier
getDescriptor
-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, perform, prebuild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.tasks.BuildStep
getRequiredMonitorService
-
-
-
-
Constructor Detail
-
AbstractTeamForgeNotifier
public AbstractTeamForgeNotifier(ConnectionFactory connectionFactory, String project)
-
-
Method Detail
-
getConnectionFactory
public ConnectionFactory getConnectionFactory()
If this notifier is configured with a separate credential, return it. Otherwise null. Used for form data binding.
-
overrideAuth
public boolean overrideAuth()
- Returns:
- whether or not auth is overriden
-
getCollabNetUrl
public String getCollabNetUrl()
- Returns:
- the url for the CollabNet server.
-
getUsername
public String getUsername()
- Returns:
- the username used for logging in.
-
getPassword
public String getPassword()
- Returns:
- the password used for logging in.
-
connect
public CollabNetApp connect()
Connects to the TeamForge.
-
getProject
public String getProject()
- Returns:
- the project where the build log is uploaded.
-
getTeamForgeShareDescriptor
public static TeamForgeShare.TeamForgeShareDescriptor getTeamForgeShareDescriptor()
- Returns:
- the TeamForge share descriptor.
-
-