Package hudson.plugins.scm.koji.client
Class KojiBuildDownloader
java.lang.Object
hudson.plugins.scm.koji.client.KojiBuildDownloader
- All Implemented Interfaces:
FilePath.FileCallable<KojiBuildDownloadResult>,hudson.plugins.scm.koji.client.TaskListenerLogTransporter,LoggerHelp,Serializable,org.jenkinsci.remoting.RoleSensitive
public class KojiBuildDownloader
extends Object
implements FilePath.FileCallable<KojiBuildDownloadResult>, LoggerHelp, hudson.plugins.scm.koji.client.TaskListenerLogTransporter
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionKojiBuildDownloader(List<KojiBuildProvider> kojiBuildProviders, KojiXmlRpcApi kojiXmlRpcApi, Predicate<String> notProcessedNvrPredicate, hudson.plugins.scm.koji.model.Build build, String downloadDir, int maxPreviousBuilds, boolean cleanDownloadDir, boolean dirPerNvr) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckRoles(org.jenkinsci.remoting.RoleChecker checker) downloadRPMs(File targetDir, hudson.plugins.scm.koji.model.Build build, RealKojiXmlRpcApi realKojiXmlRpcApi) voidvoidvoidvoidvoidsetListener(TaskListener listener)
-
Constructor Details
-
KojiBuildDownloader
public KojiBuildDownloader(List<KojiBuildProvider> kojiBuildProviders, KojiXmlRpcApi kojiXmlRpcApi, Predicate<String> notProcessedNvrPredicate, hudson.plugins.scm.koji.model.Build build, String downloadDir, int maxPreviousBuilds, boolean cleanDownloadDir, boolean dirPerNvr)
-
-
Method Details
-
invoke
public KojiBuildDownloadResult invoke(File workspace, hudson.remoting.VirtualChannel channel) throws IOException, InterruptedException - Specified by:
invokein interfaceFilePath.FileCallable<KojiBuildDownloadResult>- Throws:
IOExceptionInterruptedException
-
downloadRPMs
public List<String> downloadRPMs(File targetDir, hudson.plugins.scm.koji.model.Build build, RealKojiXmlRpcApi realKojiXmlRpcApi) -
checkRoles
- Specified by:
checkRolesin interfaceorg.jenkinsci.remoting.RoleSensitive- Throws:
SecurityException
-
setListener
-
log
- Specified by:
login interfaceLoggerHelp
-
log
- Specified by:
login interfaceLoggerHelp
-
log
- Specified by:
login interfaceLoggerHelp
-
println
- Specified by:
printlnin interfacehudson.plugins.scm.koji.client.TaskListenerLogTransporter
-