Skip to content

Commit

Permalink
[JENKINS-17236] Run.deleteArtifacts needs to go through ArtifactManager.
Browse files Browse the repository at this point in the history
(Also relevant to JENKINS-22395 diagnostics.)
  • Loading branch information
jglick committed Apr 29, 2014
1 parent 090c411 commit c1fcb08
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions core/src/main/java/hudson/model/Run.java
Expand Up @@ -1435,9 +1435,11 @@ public ACL getACL() {
* @since 1.350
*/
public synchronized void deleteArtifacts() throws IOException {
File artifactsDir = getArtifactsDir();

Util.deleteContentsRecursive(artifactsDir);
try {
getArtifactManager().delete();
} catch (InterruptedException x) {
throw new IOException(x);
}
}

/**
Expand Down

0 comments on commit c1fcb08

Please sign in to comment.