public class ClientHelper extends ConnectionHelper
authorisationConfig, connection, connectionConfig, listener
Constructor and Description |
---|
ClientHelper(P4StandardCredentials credential,
hudson.model.TaskListener listener,
String client) |
ClientHelper(String credential,
hudson.model.TaskListener listener,
String client) |
Modifier and Type | Method and Description |
---|---|
int |
getClientHead()
Get the change number for the last change within the scope of the
workspace view.
|
com.perforce.p4java.impl.generic.client.ClientView |
getClientView() |
boolean |
isClientValid(Workspace workspace) |
List<Object> |
listChanges(Object from,
Object to)
Show all changes within the scope of the client, between the 'from' and
'to' change limits.
|
List<Object> |
listClientChanges()
Fetches a list of changes needed to update the workspace to head.
|
List<Object> |
listClientChanges(Object changeLimit)
Fetches a list of changes needed to update the workspace to the specified
limit.
|
boolean |
setClient(Workspace workspace) |
boolean |
syncFiles(Object buildChange,
Populate populate)
Sync files to workspace at the specified change/label.
|
boolean |
tidyWorkspace(Populate populate)
Cleans up the Perforce workspace after a previous build.
|
boolean |
unshelveFiles(int review)
Unshelve review into workspace.
|
boolean |
updateFiles()
Test to see if workspace is at the latest revision.
|
checkVersion, disconnect, findCredential, getChange, getFiles, getLabel, isConnected, isUnicode, loadShelvedFiles, log, login, logout, setLabel, stop, validateFileSpecs, validateFileSpecs
public ClientHelper(String credential, hudson.model.TaskListener listener, String client)
public ClientHelper(P4StandardCredentials credential, hudson.model.TaskListener listener, String client)
public boolean updateFiles() throws Exception
Exception
public boolean syncFiles(Object buildChange, Populate populate) throws Exception
change
- Exception
public boolean tidyWorkspace(Populate populate) throws Exception
Exception
public boolean unshelveFiles(int review) throws Exception
review
- Exception
public int getClientHead() throws Exception
Exception
public List<Object> listChanges(Object from, Object to) throws Exception
from
- Exception
public List<Object> listClientChanges() throws Exception
Exception
public List<Object> listClientChanges(Object changeLimit) throws Exception
limit
- Exception
public com.perforce.p4java.impl.generic.client.ClientView getClientView()
public boolean isClientValid(Workspace workspace)
Copyright © 2004-2014. All Rights Reserved.