if (f.exists()) { stdout.println(Messages.InstallPluginCommand_InstallingPluginFromLocalFile(f)); String n = name != null ? name : f.getBaseName(); f.copyTo(getTargetFilePath(n)); if (dynamicLoad)
@Override public List<AbstractBuildParameters> getParameters(AbstractBuild<?, ?> build, TaskListener listener) throws IOException, InterruptedException, AbstractBuildParameters.DontTriggerException { List<AbstractBuildParameters> result = Lists.newArrayList(); try { FilePath workspace = getWorkspace(build); FilePath[] files = workspace.list(getFilePattern()); for(FilePath f: files) { String parametersStr = f.readToString(); Logger.getLogger(FileBuildParameterFactory.class.getName()).log(Level.INFO, null, "Triggering build with " + f.getBaseName()); result.add(new PredefinedBuildParameters(parametersStr)); } } catch (Exception ex) { Logger.getLogger(FileBuildParameterFactory.class.getName()).log(Level.SEVERE, null, ex); } return result; }
for (FilePath fp : detectedFilePaths) { File copy = new File(rootBuildDir, fp.getBaseName() + "(D)");
File copy = new File(runRootDir, f.getBaseName()); copy = new File(runRootDir, f.getBaseName() + i++);
urls.add(varsDir.toURI().toURL()); for (FilePath var : varsDir.list("*.groovy")) { variables.add(var.getBaseName());
stdout.println(Messages.InstallPluginCommand_InstallingPluginFromLocalFile(f)); if (name == null) { name = f.getBaseName();
stdout.println(Messages.InstallPluginCommand_InstallingPluginFromLocalFile(f)); if (name==null) name = f.getBaseName(); f.copyTo(getTargetFile()); continue;
stdout.println(Messages.InstallPluginCommand_InstallingPluginFromLocalFile(f)); if (name==null) name = f.getBaseName(); f.copyTo(getTargetFile()); continue;
stdout.println(Messages.InstallPluginCommand_InstallingPluginFromLocalFile(f)); if (name==null) name = f.getBaseName(); f.copyTo(getTargetFile()); continue;
if (f.exists()) { stdout.println(Messages.InstallPluginCommand_InstallingPluginFromLocalFile(f)); String n = name != null ? name : f.getBaseName(); f.copyTo(getTargetFilePath(n)); if (dynamicLoad)
if (run instanceof AbstractBuild) { AbstractBuild build = (AbstractBuild) run; if (build.isBuilding() && build.getWorkspace()!=null && build.getWorkspace().getBaseName().equals(candidate.getName())) { candidateInUse = true; break;