Skip to content

Commit

Permalink
[JENKINS-18678] Tweaking API, adding @SInCE & changelog for #1075, fi…
Browse files Browse the repository at this point in the history
…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 133f633
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/AbstractProject.java
Expand Up @@ -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>>
Expand Down
Expand Up @@ -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();
}

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

Expand Down

0 comments on commit 133f633

Please sign in to comment.