public class ClientHelper extends ConnectionHelper
authorisationConfig, connection, connectionConfig, listener, p4credential
Constructor and Description |
---|
ClientHelper(P4BaseCredentials credential,
hudson.model.TaskListener listener,
String client,
String charset) |
ClientHelper(String credential,
hudson.model.TaskListener listener,
String client,
String charset) |
Modifier and Type | Method and Description |
---|---|
boolean |
buildChange(Publish publish) |
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(P4Revision from)
Show all changes within the scope of the client, from the 'from' change
limits.
|
List<Integer> |
listChanges(P4Revision from,
P4Revision to)
Show all changes within the scope of the client, between the 'from' and
'to' change limits.
|
List<Integer> |
listHaveChanges(P4Revision from)
Fetches a list of changes needed to update the workspace to head.
|
List<Integer> |
listHaveChanges(P4Revision from,
P4Revision changeLimit)
Fetches a list of changes needed to update the workspace to the specified
limit.
|
void |
publishChange(Publish publish) |
void |
resolveFiles(String mode)
Resolve files in workspace with the specified option.
|
void |
revertAllFiles() |
void |
setClient(Workspace workspace) |
void |
syncFiles(P4Revision 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.
|
void |
versionFile(String file,
String desc) |
abort, checkVersion, deleteClient, disconnect, findCredential, getChange, getChangeFiles, getChangeSummary, getEmail, getJobs, getLabel, getLabelFiles, getPort, getRetry, getShelvedFiles, getSwarm, getTicket, getTrust, hasAborted, isClient, isConnected, isLabel, isUnicode, log, login, logout, setLabel, stop
public ClientHelper(String credential, hudson.model.TaskListener listener, String client, String charset)
public ClientHelper(P4BaseCredentials credential, hudson.model.TaskListener listener, String client, String charset)
public void syncFiles(P4Revision buildChange, Populate populate) throws Exception
buildChange
- Change to sync frompopulate
- Populate strategyException
public void tidyWorkspace(Populate populate) throws Exception
Exception
public void unshelveFiles(int review) throws Exception
review
- Exception
public void resolveFiles(String mode) throws Exception
mode
- Exception
public int getClientHead() throws Exception
Exception
public List<Integer> listChanges(P4Revision from, P4Revision to) throws Exception
from
- Exception
public List<Integer> listChanges(P4Revision from) throws Exception
from
- Exception
public List<Integer> listChanges() throws Exception
Exception
public List<Integer> listHaveChanges(P4Revision from) throws Exception
Exception
public List<Integer> listHaveChanges(P4Revision from, P4Revision changeLimit) throws Exception
changeLimit
- Exception
public com.perforce.p4java.impl.generic.client.ClientView getClientView()
public boolean isClientValid(Workspace workspace)
public com.perforce.p4java.client.IClient getClient()
Copyright © 2016. All rights reserved.