/** * @deprecated use {@link hudson.scm.SubversionSCM#getRevisionFile(hudson.model.Run)} instead. * * Gets the file that stores the revision. */ @Deprecated public static File getRevisionFile(AbstractBuild build) { return getRevisionFile((Run) build); }
if (getRevisionFile(b).exists()) { build = b; break; File file = getRevisionFile(build); if (!file.exists())
if (getRevisionFile(b).exists()) { build = b; break; File file = getRevisionFile(build); if (!file.exists())
if(getRevisionFile(b).exists()) { build = b; break; File file = getRevisionFile(build); if(!file.exists())
public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, final BuildListener listener, File changelogFile) throws IOException, InterruptedException { List<External> externals = checkout(build, workspace, listener); if (externals == null) { return false; } // write out the revision file PrintWriter w = new PrintWriter(new FileOutputStream(getRevisionFile(build))); try { Map<String, SvnInfo> revMap = workspace.act(new BuildRevisionMapTask(build, this, listener, externals)); for (Entry<String, SvnInfo> e : revMap.entrySet()) { w.println(e.getKey() + '/' + e.getValue().revision); } build.addAction(new SubversionTagAction(build, revMap.values())); } finally { w.close(); } // write out the externals info new XmlFile(External.XSTREAM, getExternalsFile(build.getProject())).write(externals); return calcChangeLog(build, changelogFile, listener, externals); }
public boolean checkout(AbstractBuild build, Launcher launcher, FilePath workspace, final BuildListener listener, File changelogFile) throws IOException, InterruptedException { List<External> externals = checkout(build, workspace, listener); if (externals == null) { return false; } // write out the revision file PrintWriter w = new PrintWriter(new FileOutputStream(getRevisionFile(build))); try { Map<String, SvnInfo> revMap = workspace.act(new BuildRevisionMapTask(build, this, listener, externals)); for (Entry<String, SvnInfo> e : revMap.entrySet()) { w.println(e.getKey() + '/' + e.getValue().revision); } build.addAction(new SubversionTagAction(build, revMap.values())); } finally { w.close(); } // write out the externals info new XmlFile(External.XSTREAM, getExternalsFile(build.getProject())).write(externals); return calcChangeLog(build, changelogFile, listener, externals); }
listener.error("No revision found for URL: " + url + " in " + SubversionSCM.getRevisionFile(build) + ". Revision file contains: " + thisRevisions.keySet()); return false;
PrintWriter w = new PrintWriter(new FileOutputStream(getRevisionFile(build))); try { List<SvnInfoP> pList = workspace.act(new BuildRevisionMapTask(build, this, listener, externalsForAll, env));
listener.error("No revision found for " + repoURL + " in " + SubversionSCM.getRevisionFile(build) + "" + ". Revision file contains: " + thisRevisions.keySet()); return false;
listener.error("No revision found for URL: " + url + " in " + SubversionSCM.getRevisionFile(build) + ". Revision file contains: " + thisRevisions.keySet()); return false;