public class ClientHelper extends ConnectionHelper
Modifier | Constructor and Description |
---|---|
|
ClientHelper(hudson.model.ItemGroup context,
String credential,
hudson.model.TaskListener listener,
Workspace workspace) |
protected |
ClientHelper(hudson.model.Item context,
String credential,
hudson.model.TaskListener listener) |
|
ClientHelper(hudson.model.Item context,
String credential,
hudson.model.TaskListener listener,
Workspace workspace) |
|
ClientHelper(P4BaseCredentials credential,
hudson.model.TaskListener listener,
Workspace workspace) |
Modifier and Type | Method and Description |
---|---|
boolean |
buildChange(Publish publish) |
protected void |
clientLogin(Workspace workspace) |
int |
findPendingChangelistIDByDesc(String desc,
String client) |
com.perforce.p4java.impl.generic.core.Changelist |
getChange(long 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() |
long |
getClientHead()
Get the change number for the last change within the scope of the
workspace view.
|
long |
getClientHead(P4Ref from,
P4Ref to)
Get the change number for the last change within the scope of the
workspace view up to the specified revision
|
com.perforce.p4java.impl.generic.client.ClientView |
getClientView() |
List<com.perforce.p4java.core.IChangelistSummary> |
getPendingChangelists(boolean includeLongDescription,
String clientName) |
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
|
String |
publishChange(Publish publish) |
void |
resolveFiles(String mode)
Resolve files in workspace with the specified option.
|
void |
revertAllFiles(boolean virtual) |
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(long review)
Unshelve review into workspace.
|
void |
versionFile(String file,
Publish publish,
int ChangelistID,
boolean submit) |
String |
where(String localFile) |
abort, checkVersion, close, counterToChange, deleteClient, disconnect, findCredential, findCredential, findCredential, findCredential, getAuthorisationConfig, getChangeFiles, getChangeSummary, getCommitFiles, getConnection, getCounter, getDirs, getEmail, getGraphCommit, getGraphHead, getHead, getHeadLimit, getJobs, getLabel, getLabelFiles, getListener, getLowestHead, getMaxChangeLimit, getP4SCM, getPort, getRetry, getShelvedFiles, getStreams, getSwarm, getTicket, getTrust, getUser, getValidate, hasAborted, hasFile, isClient, isConnected, isCounter, isLabel, isUnicode, labelToChange, listAllRepos, listCommits, listRepos, log, login, logout, setLabel
public ClientHelper(hudson.model.ItemGroup context, String credential, hudson.model.TaskListener listener, Workspace workspace) throws IOException
IOException
public ClientHelper(hudson.model.Item context, String credential, hudson.model.TaskListener listener, Workspace workspace) throws IOException
IOException
public ClientHelper(P4BaseCredentials credential, hudson.model.TaskListener listener, Workspace workspace) throws IOException
IOException
protected ClientHelper(hudson.model.Item context, String credential, hudson.model.TaskListener listener) throws IOException
IOException
protected void clientLogin(Workspace workspace) throws hudson.AbortException
hudson.AbortException
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, int ChangelistID, boolean submit) throws Exception
Exception
public void unshelveFiles(long review) throws Exception
review
- Review number (perhaps long?)Exception
- push up stackpublic void resolveFiles(String mode) throws Exception
mode
- Resolve modeException
- push up stackpublic com.perforce.p4java.impl.generic.core.Changelist getChange(long id) throws Exception
id
- Change number (long perhaps)Exception
- push up stackpublic long getClientHead(P4Ref from, P4Ref to) throws Exception
from
- From revision (change or label)to
- To revision (change or label)Exception
- push up stackpublic long getClientHead() throws Exception
Exception
- push up stackpublic List<com.perforce.p4java.core.IChangelistSummary> getPendingChangelists(boolean includeLongDescription, String clientName) throws Exception
Exception
public int findPendingChangelistIDByDesc(String desc, String client) throws Exception
Exception
public List<com.perforce.p4java.core.IRepo> listRepos()
public 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–2019. All rights reserved.