Package hudson.scm.localclient
Class SandboxUtils
java.lang.Object
hudson.scm.localclient.SandboxUtils
- All Implemented Interfaces:
Serializable
Created by asen on 07-06-2017.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSandboxUtils(IntegrityConfigurable integrityConfigurable, hudson.model.TaskListener listener) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandropSandbox(ISession session, hudson.FilePath workspace, IntegrityCMProject siProject) getChangeLog(com.mks.api.response.WorkItemIterator itWrokItem) booleanresyncSandbox(ISession session, hudson.FilePath workspace, boolean cleanCopy, boolean deleteNonMembers, boolean restoreTimestamp, File changeLogFile, String includeList, String excludeList, String sandboxScope) Resync the sandbox - cleanCopy forces the resync unchangedFiles as well.intprotected booleanverifyCreateSandbox(ISession session, IntegrityCMProject siProject, hudson.FilePath workspace, String lineTerminator, String sandboxScope) protected booleanverifySandbox(ISession session, IntegrityCMProject siProject, hudson.FilePath workspace) booleanviewSandboxChanges(ISession session, hudson.FilePath workspace) View the sandbox for any changes during Polling
-
Field Details
-
PROJECT_PJ
-
DEVELOPMENT_PATH
- See Also:
-
BUILD_REVISION
- See Also:
-
-
Constructor Details
-
SandboxUtils
public SandboxUtils(IntegrityConfigurable integrityConfigurable, hudson.model.TaskListener listener)
-
-
Method Details
-
getLocalAPISession
-
verifyCreateSandbox
protected boolean verifyCreateSandbox(ISession session, IntegrityCMProject siProject, hudson.FilePath workspace, String lineTerminator, String sandboxScope) throws com.mks.api.response.APIException - Parameters:
session-siProject-workspace-lineTerminator-- Throws:
com.mks.api.response.APIException
-
verifySandbox
protected boolean verifySandbox(ISession session, IntegrityCMProject siProject, hudson.FilePath workspace) throws com.mks.api.response.APIException - Throws:
com.mks.api.response.APIException
-
dropSandbox
protected boolean dropSandbox(ISession session, hudson.FilePath workspace, IntegrityCMProject siProject) throws com.mks.api.response.APIException - Parameters:
workspace-- Throws:
com.mks.api.response.APIException
-
resyncSandbox
public boolean resyncSandbox(ISession session, hudson.FilePath workspace, boolean cleanCopy, boolean deleteNonMembers, boolean restoreTimestamp, File changeLogFile, String includeList, String excludeList, String sandboxScope) throws com.mks.api.response.APIException, FileNotFoundException, UnsupportedEncodingException Resync the sandbox - cleanCopy forces the resync unchangedFiles as well.- Parameters:
session-workspace-cleanCopy-deleteNonMembers-restoreTimestamp-changeLogFile-includeList-excludeList- @return- Throws:
com.mks.api.response.APIExceptionFileNotFoundExceptionUnsupportedEncodingException
-
getChangeLog
public String getChangeLog(com.mks.api.response.WorkItemIterator itWrokItem) throws com.mks.api.response.APIException - Throws:
com.mks.api.response.APIException
-
viewSandboxChanges
public boolean viewSandboxChanges(ISession session, hudson.FilePath workspace) throws com.mks.api.response.APIException View the sandbox for any changes during Polling- Parameters:
session-workspace-- Throws:
com.mks.api.response.APIException
-
terminateClient
public int terminateClient()
-