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 |
---|---|
boolean |
buildChange() |
com.perforce.p4java.client.IClient |
getClient() |
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<Integer> |
listChanges()
Show all changes within the scope of the client.
|
List<Integer> |
listChanges(Object from)
Show all changes within the scope of the client, from the 'from' change
limits.
|
List<Integer> |
listChanges(Object from,
Object to)
Show all changes within the scope of the client, between the 'from' and
'to' change limits.
|
List<Integer> |
listHaveChanges()
Fetches a list of changes needed to update the workspace to head.
|
List<Integer> |
listHaveChanges(Object changeLimit)
Fetches a list of changes needed to update the workspace to the specified
limit.
|
void |
publishChange(Publish publish) |
boolean |
setClient(Workspace workspace) |
void |
syncFiles(Object buildChange,
Populate populate)
Sync files to workspace at the specified change/label.
|
void |
tidyWorkspace(Populate populate)
Cleans up the Perforce workspace after a previous build.
|
void |
unshelveFiles(int review)
Unshelve review into workspace.
|
boolean |
updateFiles()
Test to see if workspace is at the latest revision.
|
checkVersion, disconnect, findCredential, getChange, getChangeFiles, getLabel, getLabelFiles, getShelvedFiles, getTrust, isClient, isConnected, isLabel, isUnicode, 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 void syncFiles(Object buildChange, Populate populate) throws Exception
change
- Exception
public void tidyWorkspace(Populate populate) throws Exception
Exception
public void unshelveFiles(int review) throws Exception
review
- Exception
public int getClientHead() throws Exception
Exception
public List<Integer> listChanges(Object from, Object to) throws Exception
from
- Exception
public List<Integer> listChanges(Object from) throws Exception
from
- Exception
public List<Integer> listChanges() throws Exception
from
- Exception
public List<Integer> listHaveChanges() throws Exception
Exception
public List<Integer> listHaveChanges(Object changeLimit) throws Exception
limit
- Exception
public com.perforce.p4java.impl.generic.client.ClientView getClientView()
public boolean isClientValid(Workspace workspace)
public com.perforce.p4java.client.IClient getClient()
Copyright © 2004-2015. All Rights Reserved.