public class ClientHelper extends ConnectionHelper
authorisationConfig, connection, connectionConfig, listener, p4credential, validate
Constructor and Description |
---|
ClientHelper(hudson.model.ItemGroup context,
String credential,
hudson.model.TaskListener listener,
String client,
String charset) |
ClientHelper(hudson.model.Item context,
String credential,
hudson.model.TaskListener listener,
String client,
String charset) |
ClientHelper(P4BaseCredentials credential,
hudson.model.TaskListener listener,
String client,
String charset) |
ClientHelper(String credential,
hudson.model.TaskListener listener,
String client)
Deprecated.
|
ClientHelper(String credential,
hudson.model.TaskListener listener,
String client,
String charset)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
buildChange(Publish publish) |
com.perforce.p4java.impl.generic.core.Changelist |
getChange(int id)
Gets the Changelist (p4 describe -s); shouldn't need a client, but
p4-java throws an exception if one is not set.
|
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() |
long |
getHead(String path)
Get the latest change on the given path
|
boolean |
hasFile(String depotPath) |
boolean |
isClientValid(Workspace workspace) |
List<P4Ref> |
listChanges()
Show all changes within the scope of the client.
|
List<P4Ref> |
listChanges(List<P4Ref> fromRefs,
P4Ref to)
Show all changes within the scope of the client, between the 'from' and
'to' change limits.
|
List<P4Ref> |
listChanges(P4Ref from)
Show all changes within the scope of the client, from the 'from' change
limits.
|
List<P4Ref> |
listHaveChanges(List<P4Ref> fromRefs)
Fetches a list of changes needed to update the workspace to head.
|
List<P4Ref> |
listHaveChanges(List<P4Ref> fromRefs,
P4Ref changeLimit)
Fetches a list of changes needed to update the workspace to the specified
limit.
|
List<com.perforce.p4java.core.IRepo> |
listRepos()
List of Graph Repos within the client's view
|
void |
publishChange(Publish publish) |
void |
resolveFiles(String mode)
Resolve files in workspace with the specified option.
|
void |
revertAllFiles(boolean virtual) |
void |
setClient(Workspace workspace) |
void |
syncFiles(P4Ref 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,
Publish publish) |
abort, checkVersion, close, deleteClient, disconnect, findCredential, findCredential, findCredential, findCredential, getChangeFiles, getChangeSummary, getCommitFiles, getConnection, getCounter, getDirs, getEmail, getGraphCommit, getGraphHead, getJobs, getLabel, getLabelFiles, getMaxChangeLimit, getPort, getRetry, getShelvedFiles, getStreams, getSwarm, getTicket, getTrust, getUser, hasAborted, isClient, isConnected, isCounter, isLabel, isUnicode, listAllRepos, listCommits, listRepos, log, login, logout, setLabel, stop
@Deprecated public ClientHelper(String credential, hudson.model.TaskListener listener, String client)
@Deprecated public ClientHelper(String credential, hudson.model.TaskListener listener, String client, String charset)
public ClientHelper(hudson.model.ItemGroup context, String credential, hudson.model.TaskListener listener, String client, String charset)
public ClientHelper(hudson.model.Item context, 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(P4Ref buildChange, Populate populate) throws Exception
buildChange
- Change to sync frompopulate
- Populate strategyException
- push up stackpublic void tidyWorkspace(Populate populate) throws Exception
populate
- Jelly populate optionsException
- push up stackpublic void versionFile(String file, Publish publish) throws Exception
Exception
public void unshelveFiles(int review) throws Exception
review
- Review number (perhaps long?)Exception
- push up stackpublic void resolveFiles(String mode) throws Exception
mode
- Resolve modeException
- push up stackpublic long getHead(String path) throws Exception
path
- Perforce depot path //foo/...Exception
- push up stackpublic com.perforce.p4java.impl.generic.core.Changelist getChange(int id) throws Exception
id
- Change number (long perhaps)Exception
- push up stackpublic int getClientHead() throws Exception
Exception
- push up stackpublic List<com.perforce.p4java.core.IRepo> listRepos() throws Exception
Exception
- push up stackpublic List<P4Ref> listChanges(List<P4Ref> fromRefs, P4Ref to) throws Exception
fromRefs
- list of from revisions (change or label)to
- To revision (change or label)Exception
- push up stackpublic List<P4Ref> listChanges(P4Ref from) throws Exception
from
- From revision (change or label)Exception
- push up stackpublic List<P4Ref> listChanges() throws Exception
Exception
- push up stackpublic List<P4Ref> listHaveChanges(List<P4Ref> fromRefs) throws Exception
fromRefs
- List from revisionsException
- push up stackpublic List<P4Ref> listHaveChanges(List<P4Ref> fromRefs, P4Ref changeLimit) throws Exception
fromRefs
- List of from revisionschangeLimit
- To RevisionException
- push up stackpublic com.perforce.p4java.impl.generic.client.ClientView getClientView()
public boolean isClientValid(Workspace workspace)
public com.perforce.p4java.client.IClient getClient()
Copyright © 2016–2017. All rights reserved.