private EntityLinkStore(AbstractProject project) { super(project.getRootDir()); }
/** * Creates a file with for the default values. * * @param project * the project used as directory for the file * @param pluginName * the name of the plug-in * @return the created file */ protected static File createDefaultsFile(final AbstractProject<?, ?> project, final String pluginName) { return new File(project.getRootDir(), pluginName + ".txt"); }
/** * Creates a file with for the default values. * * @param project * the project used as directory for the file * @param pluginName * the name of the plug-in * @return the created file */ protected File createDefaultsFile(final AbstractProject<?, ?> project, final String pluginName) { return new File(project.getRootDir(), pluginName + ".txt"); }
/** * Gets the file that stores the externals. */ private static File getExternalsFile(AbstractProject project) { return new File(project.getRootDir(), "svnexternals.txt"); }
/** * Returns the file that records the last/current polling activity. */ public File getLogFile(AbstractProject job) { return new File(job.getRootDir(), "scm-polling.log"); }
/** * Gets the file that stores the externals. */ private static File getExternalsFile(AbstractProject project) { return new File(project.getRootDir(), "svnexternals.txt"); }
/** * Creates a file with for the default values. * * @param project * the project used as directory for the file * @param pluginName * the name of the plug-in * @return the created file */ protected File createDefaultsFile(final AbstractProject<?, ?> project, final String pluginName) { return new File(project.getRootDir(), pluginName + ".txt"); }
private XmlFile getXmlFile() { return new XmlFile(new File(project.getRootDir(),"subversion.credentials")); }
public File getRootDir() { return new File(getOwner().getRootDir(),"promotions"); }
private XmlFile getXmlFile() { return new XmlFile(new File(project.getRootDir(), credentialsFileName)); }
/** * Checks if the series file is valid. */ public FormValidation doCheckSeriesFile( @AncestorInPath AbstractProject<?, ?> project, @QueryParameter String value) throws IOException { // we don't have a workspace while in Pipeline editor if (project == null || project.getRootDir() == null) { return FormValidation.ok(); } return FilePath.validateFileMask(project.getSomeWorkspace(), value); } }
Util.deleteRecursive(new File(implementationProject.getRootDir(), "promotions")); promotions.getItems().clear(); File templatePromotions = new File(templateProject.getRootDir(), "promotions"); String[] list = templatePromotions.list(); if (list != null) {
/** * Called by hudson at the end of a build. * * @param build * the build * @param launcher * the launcher * @param listener * for reporting errors * @return true always. * @throws InterruptedException * if user cancels the operation * @throws IOException * if problem parsing the xml files */ @Override public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException { FilePath htmlPath = new FilePath(new File(build.getProject().getRootDir(), VIOLATIONS)); FilePath targetPath = new FilePath(new File(build.getRootDir(), VIOLATIONS)); FilePath workspace = build.getWorkspace(); build.getActions().add(createBuildAction(workspace, targetPath, htmlPath, config, build, listener)); return true; }
/*package*/ void migratePerJobCredentials() { if (credentials == null && !mayHaveLegacyPerJobCredentials ) { // nothing to do here return; } boolean allOk = true; for (AbstractProject<?, ?> job : Jenkins.getInstance().getAllItems(AbstractProject.class)) { File jobCredentials = new File(job.getRootDir(), "subversion.credentials"); if (jobCredentials.isFile()) { try { if (job.getScm() instanceof SubversionSCM) { new PerJobCredentialStore(job).migrateCredentials(this); job.save(); } // else: job is not using Subversion anymore if (!jobCredentials.delete()) { LOGGER.log(Level.WARNING, "Could not remove legacy per-job credentials store file: {0}", jobCredentials); allOk = false; } } catch (IOException e) { LOGGER.log(Level.WARNING, "Could not migrate per-job credentials for " + job.getFullName(), e); allOk = false; } } } mayHaveLegacyPerJobCredentials = !allOk; save(); }
final File destDir = b.getProject().getRootDir();
final File destDir = b.getProject().getRootDir();
final File ivyF = new File(b.getProject().getRootDir(), BACKUP_IVY_FILE_NAME); try { copyIvyFileFromWorkspaceIfNecessary(b.getWorkspace(), ivyF);
List<AbstractProject> projects = getAllProjects((ItemGroup) project); for(AbstractProject p: projects){ exceededFiles.add(p.getRootDir()); long buildSize = DiskUsageUtil.getFileSize(project.getRootDir(), exceededFiles); DiskUsageProperty property = (DiskUsageProperty) project.getProperty(DiskUsageProperty.class); if(property==null){
project.onLoad(project.getParent(), project.getRootDir().getName()); Jenkins.getInstance().rebuildDependencyGraph();
new FilePath(build.getProject().getRootDir()), new FilePath(build.getRootDir()), build.getModuleRoot(),