/*package*/ TextFile getNextBuildNumberFile() { return new TextFile(new File(this.getRootDir(), "nextBuildNumber")); }
/** * Directory for storing {@link Run} records. * <p> * Some {@link Job}s may not have backing data store for {@link Run}s, but * those {@link Job}s that use file system for storing data should use this * directory for consistency. * * @see RunMap */ public File getBuildDir() { // we use the null check variant so that people can write true unit tests with a mock ItemParent // and without a JenkinsRule. Such tests are of limited utility as there is a high risk of hitting // some code that needs the singleton, but for persistence migration test cases it makes sense to permit Jenkins j = Jenkins.getInstanceOrNull(); if (j == null) { return new File(getRootDir(), "builds"); } return j.getBuildDirFor(this); }
/** * Backward compatibility. * * We used to have $JENKINS_HOME/jobs/JOBNAME/lastStable and lastSuccessful symlinked to the appropriate * builds, but now those are done in {@link PeepholePermalink}. So here, we simply create symlinks that * resolves to the symlink created by {@link PeepholePermalink}. */ private void createSymlink(@Nonnull TaskListener listener, @Nonnull String name, @Nonnull PermalinkProjectAction.Permalink target) throws InterruptedException { File buildDir = getParent().getBuildDir(); File rootDir = getParent().getRootDir(); String targetDir; if (buildDir.equals(new File(rootDir, "builds"))) { targetDir = "builds" + File.separator + target.getId(); } else { targetDir = buildDir + File.separator + target.getId(); } Util.createSymlink(rootDir, targetDir, name, listener); }
public File superGetRootDir() { return super.getRootDir(); }
/** * Gets the directory where the Javadoc is stored for the given project. */ private static File getJavadocDir(Job<?,?> project) { return new File(project.getRootDir(),"javadoc"); }
/** * 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 Job<?, ?> project, final String pluginName) { return new File(project.getRootDir(), pluginName + ".txt"); }
/** * Returns the file that records the last/current polling activity. */ public File getLogFile() { return new File(job.getRootDir(),"bitbucket-polling.log"); }
/** * Creates a file with for the default values. * * @param job * the job used as directory for the file * @param pluginName * the name of the plug-in * @return the created file */ protected static File createDefaultsFile(final Job<?, ?> job, final String pluginName) { return new File(job.getRootDir(), pluginName + ".txt"); }
/** * Returns the file that records the last/current polling activity. */ public File getLogFile() { return new File(job.getRootDir(), "github-polling.log"); }
/** * Gets the file that stores the externals. */ @Nonnull private static File getExternalsFile(Job project) { return new File(project.getRootDir(), SVN_EXTERNALS_FILE); }
public File getLogFile() { return new File(job.getRootDir(), "team-polling.log"); }
/** * Check if "bitbucket-polling.log" already exists to initialize it */ public boolean IsLogFileInitialized() { File file = new File(job.getRootDir(),"bitbucket-polling.log"); return file.exists(); }
public String getCsvFileName() { if (StringUtils.isBlank(csvFileName) && project != null) { try { csvFileName = File.createTempFile("plot-", ".csv", project.getRootDir()).getName(); } catch (IOException e) { LOGGER.log(Level.SEVERE, "Unable to create temporary CSV file.", e); } } return csvFileName; }
/*package*/ TextFile getNextBuildNumberFile() { return new TextFile(new File(this.getRootDir(), "nextBuildNumber")); }
/*package*/ TextFile getNextBuildNumberFile() { return new TextFile(new File(this.getRootDir(), "nextBuildNumber")); }
/*package*/ TextFile getNextBuildNumberFile() { return new TextFile(new File(this.getRootDir(), "nextBuildNumber")); }
/*package*/ TextFile getNextBuildNumberFile() { return new TextFile(new File(this.getRootDir(), "nextBuildNumber")); }
public XmlFile getConfigFile(){ return new XmlFile(new File(job.getRootDir(), "disk-usage.xml")); }
/** * gets the file corresponding to the source file. * * @return The file where the source file should be (if it exists) */ private File getSourceFile() { if (hasPermission()) { return new File(owner.getParent().getRootDir(), "cobertura/" + relativeSourcePath); } return null; }
@Override public File getRootDir() { initPython(); if (pexec.isImplemented(81)) { return (File) pexec.execPython("get_root_dir"); } else { return super.getRootDir(); } }