Package hudson.scm
Class IntegrityCheckoutTask
java.lang.Object
hudson.scm.IntegrityCheckoutTask
- All Implemented Interfaces:
hudson.FilePath.FileCallable<Boolean>,Serializable,org.jenkinsci.remoting.RoleSensitive
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIntegrityCheckoutTask(List<Hashtable<CM_PROJECT, Object>> projectMembersList, List<String> dirList, String alternateWorkspaceDir, String lineTerminator, boolean restoreTimestamp, boolean cleanCopy, boolean fetchChangedWorkspaceFiles, int checkoutThreadPoolSize, int checkoutThreadTimeout, hudson.model.TaskListener listener, IntegrityConfigurable integrityConfig) Hudson supports building on distributed machines, and the SCM plugin must be able to be executed on other machines than the master. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckRoles(org.jenkinsci.remoting.RoleChecker checker) Indicates that this task can be run slaves.Returns all the changes to the checksums that were performedThis task wraps around the code necessary to checkout Integrity CM Members on remote machines
-
Constructor Details
-
IntegrityCheckoutTask
public IntegrityCheckoutTask(List<Hashtable<CM_PROJECT, Object>> projectMembersList, List<String> dirList, String alternateWorkspaceDir, String lineTerminator, boolean restoreTimestamp, boolean cleanCopy, boolean fetchChangedWorkspaceFiles, int checkoutThreadPoolSize, int checkoutThreadTimeout, hudson.model.TaskListener listener, IntegrityConfigurable integrityConfig) Hudson supports building on distributed machines, and the SCM plugin must be able to be executed on other machines than the master.- Parameters:
projectMembersList- A list of all the members that are in this Integrity SCM projectdirList- A list of all the unique directories in this Integrity SCM projectalternateWorkspaceDir- Specifies an alternate location for checkout other than the default workspacelineTerminator- The line termination setting for this checkout operationrestoreTimestamp- Toggles whether to use the current date/time or the original date/time for the membercleanCopy- Indicates whether or not the workspace needs to be cleaned up prior to checking out filesfetchChangedWorkspaceFiles- Toggles whether or not to calculate checksums, so if changed then it will be overwrittencheckoutThreadPoolSize- Number of parallel threads for the checkoutcheckoutThreadTimeout- Timeout in minutes per checkout threadlistener- The Hudson task listenerintegrityConfig- Integrity Configuration Object
-
-
Method Details
-
getChecksumUpdates
Returns all the changes to the checksums that were performed- Returns:
-
checkRoles
Indicates that this task can be run slaves.- Specified by:
checkRolesin interfaceorg.jenkinsci.remoting.RoleSensitive- Parameters:
checker- RoleChecker- Throws:
SecurityException
-
invoke
public Boolean invoke(File workspaceFile, hudson.remoting.VirtualChannel channel) throws IOException This task wraps around the code necessary to checkout Integrity CM Members on remote machines- Specified by:
invokein interfacehudson.FilePath.FileCallable<Boolean>- Throws:
IOException
-