public class IntegrityCheckoutTask extends Object implements hudson.FilePath.FileCallable<Boolean>
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
checkRoles(org.jenkinsci.remoting.RoleChecker checker)
Indicates that this task can be run slaves.
|
ConcurrentHashMap<String,String> |
getChecksumUpdates()
Returns all the changes to the checksums that were performed
|
Boolean |
invoke(File workspaceFile,
hudson.remoting.VirtualChannel channel)
This task wraps around the code necessary to checkout Integrity CM Members on remote machines
|
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)
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 Objectpublic ConcurrentHashMap<String,String> getChecksumUpdates()
public void checkRoles(org.jenkinsci.remoting.RoleChecker checker) throws SecurityException
checkRoles
in interface org.jenkinsci.remoting.RoleSensitive
checker
- RoleCheckerSecurityException
public Boolean invoke(File workspaceFile, hudson.remoting.VirtualChannel channel) throws IOException
invoke
in interface hudson.FilePath.FileCallable<Boolean>
IOException
Copyright © 2016–2024. All rights reserved.