mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
As this is my first look inside Jenkins codebase I not sure it's correct
but perhaps artifacts for modulebuilds should be deleted just as logs are deleted. see https://issues.jenkins-ci.org/browse/JENKINS-17508 I did not fully test it yet, all unit tests ran fine, but didn't succeed to run jobs inside Jenkins, due to classloader issues while running Jenkins in Jetty, to verify deletion
This commit is contained in:
1 parent
a9edf6a421
commit
d4459d9d0f
1 file changed
+8
@@ -397,6 +397,14 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
|
||||
build.delete();
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized void deleteArtifacts() throws IOException {
|
||||
super.deleteArtifacts();
|
||||
for (List<MavenBuild> list : getModuleBuilds().values())
|
||||
for (MavenBuild build : list)
|
||||
build.deleteArtifacts();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getDynamic(String token, StaplerRequest req, StaplerResponse rsp) {
|
||||
// map corresponding module build under this object
|
||||
|
||||
Reference in new issue
Block a user