Package org.jenkinsci.plugins.p4.tasks
Class UnshelveTask
- java.lang.Object
-
- org.jenkinsci.plugins.p4.tasks.AbstractTask
-
- org.jenkinsci.plugins.p4.tasks.UnshelveTask
-
- All Implemented Interfaces:
FilePath.FileCallable<Boolean>
,Serializable
,org.jenkinsci.remoting.RoleSensitive
public class UnshelveTask extends AbstractTask implements FilePath.FileCallable<Boolean>, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnshelveTask(String credential, Run<?,?> run, TaskListener listener, String resolve, boolean tidy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkRoles(org.jenkinsci.remoting.RoleChecker checker)
Boolean
invoke(File workspace, hudson.remoting.VirtualChannel channel)
void
setShelf(long shelf)
Object
task(ClientHelper p4)
Implements the Perforce task to retry if necessary-
Methods inherited from class org.jenkinsci.plugins.p4.tasks.AbstractTask
checkConnection, getClientName, getCredential, getListener, getSyncID, getWorkspace, setEnvironment, setup, setWorkspace, tryTask
-
-
-
-
Constructor Detail
-
UnshelveTask
public UnshelveTask(String credential, Run<?,?> run, TaskListener listener, String resolve, boolean tidy)
-
-
Method Detail
-
setShelf
public void setShelf(long shelf)
-
task
public Object task(ClientHelper p4) throws Exception
Description copied from class:AbstractTask
Implements the Perforce task to retry if necessary- Specified by:
task
in classAbstractTask
- Parameters:
p4
- Perforce connection helper- Returns:
- Task object
- Throws:
Exception
- push up stack
-
invoke
public Boolean invoke(File workspace, hudson.remoting.VirtualChannel channel) throws IOException
- Specified by:
invoke
in interfaceFilePath.FileCallable<Boolean>
- Throws:
IOException
-
checkRoles
public void checkRoles(org.jenkinsci.remoting.RoleChecker checker) throws SecurityException
- Specified by:
checkRoles
in interfaceorg.jenkinsci.remoting.RoleSensitive
- Throws:
SecurityException
-
-