|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.plugins.collabnet.documentuploader.CNDocumentUploader
public class CNDocumentUploader
Hudson plugin to upload the Hudson build log to the CollabNet Documents.
| Nested Class Summary | |
|---|---|
static class |
CNDocumentUploader.DescriptorImpl
The CNDocumentUploader Descriptor class. |
| Nested classes/interfaces inherited from class hudson.tasks.Publisher |
|---|
hudson.tasks.Publisher.DescriptorExtensionListImpl |
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
|---|
hudson.tasks.BuildStep.PublisherList |
| Field Summary | |
|---|---|
static CNDocumentUploader.DescriptorImpl |
DESCRIPTOR
Descriptor should be singleton. |
| Fields inherited from interface hudson.tasks.BuildStep |
|---|
BUILDERS, PUBLISHERS |
| Constructor Summary | |
|---|---|
CNDocumentUploader(java.lang.String url,
java.lang.String username,
java.lang.String password,
java.lang.String project,
java.lang.String uploadPath,
java.lang.String description,
java.lang.String[] filePatterns,
boolean includeBuildLog,
boolean override_auth)
Creates a new CNDocumentUploader object. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCollabNetUrl()
|
java.lang.String |
getDescription()
|
hudson.model.Descriptor<hudson.tasks.Publisher> |
getDescriptor()
|
java.lang.String[] |
getFilePatterns()
|
static java.lang.String |
getMimeType(java.io.File f)
Get the mimetype for the file. |
static java.lang.String |
getMimeType(hudson.FilePath filePath)
Get the mimetype for the file. |
java.lang.String |
getPassword()
|
java.lang.String |
getProject()
|
java.lang.String |
getProjectId()
Get the project id for the project name. |
java.lang.String[] |
getProjects()
|
static TeamForgeShare.TeamForgeShareDescriptor |
getTeamForgeShareDescriptor()
|
java.lang.String |
getUploadPath()
|
java.lang.String |
getUsername()
|
boolean |
includeBuildLog()
|
void |
logoff()
Log out of the collabnet server. |
boolean |
overrideAuth()
|
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
The function does the work of uploading the build log. |
int |
uploadFiles(java.lang.String folderId,
hudson.model.AbstractBuild<?,?> build)
Upload files matching the file patterns to the Document Service. |
| Methods inherited from class hudson.tasks.Publisher |
|---|
all, getProjectAction, needsToRunAfterFinalized, prebuild |
| Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer |
|---|
getProjectAction, 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 |
|---|
getProjectAction, prebuild |
| Field Detail |
|---|
public static final CNDocumentUploader.DescriptorImpl DESCRIPTOR
| Constructor Detail |
|---|
public CNDocumentUploader(java.lang.String url,
java.lang.String username,
java.lang.String password,
java.lang.String project,
java.lang.String uploadPath,
java.lang.String description,
java.lang.String[] filePatterns,
boolean includeBuildLog,
boolean override_auth)
url - for the CollabNet server, i.e. http://forge.collab.netusername - used to log into the CollabNet server.password - for the logging-in user.project - where the build log will be uploaded.uploadPath - on the CollabNet server, where the build log should
be uploaded.fileName - to set for the build log.| Method Detail |
|---|
public boolean overrideAuth()
public java.lang.String getCollabNetUrl()
public java.lang.String getUsername()
public java.lang.String getPassword()
public java.lang.String getProject()
public java.lang.String getUploadPath()
public java.lang.String getDescription()
public java.lang.String[] getFilePatterns()
public boolean includeBuildLog()
public static TeamForgeShare.TeamForgeShareDescriptor getTeamForgeShareDescriptor()
public java.lang.String[] getProjects()
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerbuild - current Hudson build.launcher - unused.listener - receives events that happen during a build. We use it
for logging.
public int uploadFiles(java.lang.String folderId,
hudson.model.AbstractBuild<?,?> build)
folderId - folder where the files should be uploaded.build - the current Hudson build.
public static java.lang.String getMimeType(hudson.FilePath filePath)
filePath - The filePath to return the mimetype for.
public static java.lang.String getMimeType(java.io.File f)
f - The file to return the mimetype for.
public void logoff()
public java.lang.String getProjectId()
public hudson.model.Descriptor<hudson.tasks.Publisher> getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>getDescriptor in class hudson.tasks.Publisher
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||