Same Issue at 1.609.3 (on windows) To reproduce: deleted ALL old builds (so there is no lastsuccessfull/laststable available) with:
import hudson.model.* import java.util.Date hudson = Hudson.instance for (job in hudson.projects) { job.getBuilds().each { it.delete() }
}
It seems that the exception is caused by the code that creates the console output for upstream/downstream projects i'm using "Build other Projects (extended)" post build actions
Started by upstream project "Trunk.XXX.UpdateVersion" build number 521 originally caused by: Started by upstream project "Trunk.XXX.BuildStarter" build number 252 originally caused by: Started by user Administrator ln builds\lastSuccessfulBuild C:\JENKINS\HOME_MASTER\jobs\Trunk.XXX.Build\lastSuccessful failed java.nio.file.DirectoryNotEmptyException: C:\JENKINS\HOME_MASTER\jobs\Trunk.XXX.Build\lastSuccessful |