|
||||||||||
| 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.tasks.Notifier
hudson.plugins.collabnet.filerelease.CNFileRelease
public class CNFileRelease
Hudson plugin to update files from the Hudson workspace to the CollabNet File Release System.
| Nested Class Summary | |
|---|---|
static class |
CNFileRelease.DescriptorImpl
The CNFileRelease Descriptor class. |
| Nested classes/interfaces inherited from class hudson.tasks.Publisher |
|---|
hudson.tasks.Publisher.DescriptorExtensionListImpl |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
|---|
hudson.tasks.BuildStep.PublisherList |
| Field Summary |
|---|
| Fields inherited from interface hudson.tasks.BuildStep |
|---|
BUILDERS, PUBLISHERS |
| Constructor Summary | |
|---|---|
CNFileRelease(java.lang.String url,
java.lang.String username,
java.lang.String password,
java.lang.String project,
java.lang.String rpackage,
java.lang.String release,
boolean overwrite,
java.lang.String[] filePatterns,
boolean override_auth)
Creates a new CNFileRelease object. |
|
| Method Summary | |
|---|---|
CnfrResultAction |
createAction(int numUploaded,
java.lang.String releaseId)
Get the ResultAction for this build. |
java.lang.String |
getCollabNetUrl()
|
java.lang.String[] |
getFilePatterns()
|
static java.lang.String |
getMimeType(java.io.File f)
Get the mimetype for the file. |
java.lang.String |
getPackage()
|
java.lang.String |
getPackageId(java.lang.String projectId)
Get the package id. |
java.lang.String[] |
getPackages()
|
java.lang.String |
getPassword()
|
java.lang.String |
getProject()
|
java.lang.String |
getProjectId()
Get the project id for the project name. |
java.lang.String[] |
getProjects()
|
java.lang.String |
getRelease()
|
java.lang.String |
getReleaseId()
Get the releaseId from the project/package/release names. |
java.lang.String |
getReleaseId(java.lang.String packageId)
Get the release id. |
java.lang.String[] |
getReleases()
|
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService()
|
static TeamForgeShare.TeamForgeShareDescriptor |
getTeamForgeShareDescriptor()
|
java.lang.String |
getUsername()
|
void |
logoff()
Log out of the collabnet server. |
boolean |
overrideAuth()
|
boolean |
overwrite()
|
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
The function does the work of uploading files for the release. |
int |
uploadFiles(hudson.model.AbstractBuild<?,?> build,
java.lang.String releaseId)
Upload the files which match the file patterns to the given releaseId. |
| 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, 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 |
| Constructor Detail |
|---|
public CNFileRelease(java.lang.String url,
java.lang.String username,
java.lang.String password,
java.lang.String project,
java.lang.String rpackage,
java.lang.String release,
boolean overwrite,
java.lang.String[] filePatterns,
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 files will be uploaded. The project
contains the package.rpackage - where the files will be uploaded. The package contains
the release.release - where the files will be uploaded.overwrite - whether or not to overwrite existing files.filePatterns - Any files in the Hudson workspace that match these
ant-style patterns will be uploaded to the
CollabNet server.| 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 getPackage()
public java.lang.String getRelease()
public boolean overwrite()
public java.lang.String[] getFilePatterns()
public static TeamForgeShare.TeamForgeShareDescriptor getTeamForgeShareDescriptor()
public java.lang.String[] getProjects()
public java.lang.String[] getPackages()
public java.lang.String[] getReleases()
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService in interface hudson.tasks.BuildStep
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws java.io.IOException,
java.lang.InterruptedException
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.
java.io.IOException
java.lang.InterruptedException
public CnfrResultAction createAction(int numUploaded,
java.lang.String releaseId)
numUploaded -
public int uploadFiles(hudson.model.AbstractBuild<?,?> build,
java.lang.String releaseId)
throws java.io.IOException,
java.lang.InterruptedException
build - current Hudson build.releaseId - where the files will be uploaded.
java.io.IOException
java.lang.InterruptedExceptionpublic static java.lang.String getMimeType(java.io.File f)
f - The file to return the mimetype for.
public void logoff()
public java.lang.String getReleaseId()
public java.lang.String getProjectId()
public java.lang.String getPackageId(java.lang.String projectId)
projectId - the id of the project which contains this package.
public java.lang.String getReleaseId(java.lang.String packageId)
packageId - the id of the package which contains this release.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||