Class BuildNotifier
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Notifier
-
- hudson.plugins.collabnet.orchestrate.BuildNotifier
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
public class BuildNotifier extends Notifier
Notifies TeamForge when a build is complete. This is job-specific configuration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BuildNotifier.OptionalAssociationView
static class
BuildNotifier.OptionalWebhook
-
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 BuildNotifier(BuildNotifier.OptionalAssociationView associationView, BuildNotifier.OptionalWebhook webhook)
Creates a new BuildNotifier.
-
Method Summary
-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, prebuild
-
-
-
-
Constructor Detail
-
BuildNotifier
@DataBoundConstructor public BuildNotifier(BuildNotifier.OptionalAssociationView associationView, BuildNotifier.OptionalWebhook webhook)
Creates a new BuildNotifier. Arguments are automatically supplied when the job configuration is read from the configuration file.- Parameters:
associationView
- The Association Viewwebhook
- The TeamForge webhook info
-
-
Method Detail
-
getWebhookUsername
public String getWebhookUsername()
-
getWebhookPassword
public Secret getWebhookPassword()
-
getCollabNetUrl
public String getCollabNetUrl()
- Returns:
- the collabneturl for the CollabNet server.
-
getUsername
public String getUsername()
- Returns:
- the username used for logging in.
-
overrideAuth
public boolean overrideAuth()
- Returns:
- whether or not auth is overriden
-
getPassword
public String getPassword()
- Returns:
- the password used for logging in.
-
getConnectionFactory
public ConnectionFactory getConnectionFactory()
-
getWebhook
public BuildNotifier.OptionalWebhook getWebhook()
-
getTeamForgeShareDescriptor
public static TeamForgeShare.TeamForgeShareDescriptor getTeamForgeShareDescriptor()
- Returns:
- the TeamForge share descriptor.
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
-
getCtfUrl
public String getCtfUrl()
Reads the ctf project URL- Returns:
- the CTF project URL
-
setCtfUrl
public void setCtfUrl(String ctfUrl)
Sets the CTF URL- Parameters:
ctfUrl
- ctfUrl
-
getCtfUser
public String getCtfUser()
Reads the ctf credentials - user- Returns:
- the CTF project User
-
setCtfUser
public void setCtfUser(String ctfUser)
Sets the CTF User- Parameters:
ctfUser
- ctfUser
-
getCtfPassword
public String getCtfPassword()
Reads the ctf passowrd- Returns:
- What should be displayed as ctf password
-
getDescriptor
public BuildNotifierDescriptor getDescriptor()
Gets the plugin descriptor with its global configuration.- Specified by:
getDescriptor
in interfaceDescribable<Publisher>
- Overrides:
getDescriptor
in classNotifier
- Returns:
- the descriptor
-
perform
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
-
getUseAssociationView
public boolean getUseAssociationView()
-
setUseAssociationView
public void setUseAssociationView(boolean useAssociationView)
-
getWebhookUrl
public String getWebhookUrl()
-
getSupportWebhook
public boolean getSupportWebhook()
-
setSupportWebhook
public void setSupportWebhook(boolean supportWebhook)
-
-