Skip to content
Permalink
Browse files
[JENKINS-18678] Tweaking API, adding @SInCE & changelog for #1075, fi…
…xing purgeCache so that test can pass.

(cherry picked from commit 833c423)

Conflicts:
	changelog.html
  • Loading branch information
jglick authored and olivergondza committed Jan 9, 2014
1 parent 9c7b5a1 commit 133f63332680bb750eca822ee21d3145b7482ddf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
@@ -1663,7 +1663,7 @@ void addToList( T item, List<T> collection ) throws IOException {
public void renameTo(String newName) throws IOException {
super.renameTo(newName);
// Update locations inside builds cache
builds.updateBaseDir(getBuildDir(), false);
builds.updateBaseDir(getBuildDir());
}

protected final synchronized <T extends Describable<T>>
@@ -214,11 +214,10 @@ public final boolean baseDirInitialized() {
* Updates base directory location after directory changes.
* This method should be used on jobs renaming, etc.
* @param dir Directory location
* @param reloadBuilds Purges cache after the directory update
* @since 1.546

This comment has been minimized.

Copy link
@jglick

jglick Jan 10, 2014

Author Member

@olivergondza this should I guess be edited in both stable and master to specify

@since 1.546, 1.532.2

or changed in the branch to be @Restricted(NoExternalUse.class).

*/
public final void updateBaseDir(File dir, boolean reloadBuilds) {
public final void updateBaseDir(File dir) {
this.dir = dir;
purgeCache();
}

/**
@@ -230,6 +229,7 @@ public final void updateBaseDir(File dir, boolean reloadBuilds) {
*/
public void purgeCache() {
index = new Index();
fullyLoaded = false;
loadIdOnDisk();
}

0 comments on commit 133f633

Please sign in to comment.