package org.jenkinsci.plugins.p4_client.workspace; import hudson.DescriptorExtensionList; import hudson.ExtensionPoint; import hudson.model.Describable; import hudson.model.Hudson; public abstract class Workspace implements ExtensionPoint, Describable<Workspace> { private String rootPath; private String hostname; public abstract WorkspaceType getType(); public abstract String getName(); public abstract String getCharset(); public WorkspaceDescriptor getDescriptor() { return (WorkspaceDescriptor) Hudson.getInstance().getDescriptor( getClass()); } public static DescriptorExtensionList<Workspace, WorkspaceDescriptor> all() { return Hudson.getInstance() .<Workspace, WorkspaceDescriptor> getDescriptorList( Workspace.class); } public String getRootPath() { return rootPath; } public void setHostName(String hostname) { this.hostname = hostname; } public String getHostName() { return hostname; } public void setRootPath(String rootPath) { this.rootPath = rootPath; } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#8 | 9672 | Paul Allen | Refactor name from 'p4_client' to 'p4'. | ||
#7 | 9495 | Paul Allen |
Fix Polling issue; using the wrong client. Removed static classes and internal referenced to PerforceScm attributes, to avoid threading issues. |
||
#6 | 8902 | Paul Allen |
Updated test cases: Pushed Workspace 'charset' to abstract Workspace class. Minor bugfixes in Workspace AutoCompletionCandidates method. |
||
#5 | 8899 | Paul Allen | Move Workspace setup/creation code to Implementation class. | ||
#4 | 8738 | Paul Allen |
Workspace Name Formatter. For Template and Stream workspaces it allows the substitution of the following tags: ${node} The name given to the slave Jenkins node. ${hostname} The hostname for the slave Jenkins node. ${project} The name of the Jenkins build Job. ${hash} Unique hash code of the Jenkins node. |
||
#3 | 8663 | Paul Allen | Rollout of charset for all Workspace modes. | ||
#2 | 8641 | Paul Allen | Added workspace helper (setClient) and template/stream types. | ||
#1 | 8640 | Paul Allen |
Added Workspace and Singleton descriptor. Removed old connection code. |