<< Back to previous view

[QB-48] Publish step cannot delete a directory
Created: 13/Mar/06  Updated: 16/Mar/06

Status: Resolved
Project: QuickBuild
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Critical
Reporter: Michael King Assigned To: Robin Shen
Resolution: Fixed Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown
Environment: Linux machine using maven 1.2


 Description   
I have a parent configuration that describes all of the Builders and Steps for child configurations. Each child configuration is a copy of a previous created child configuation, so they are all identical except for the name of the child and repository. On one of this child configurations the build fails at the Publish Artifact step with the following error:


2006-03-13 01:35:38,018 [Thread-73598] ERROR - Build failed.
java.lang.RuntimeException: Unable to delete directory /usr/local/builds/publish/Service-tier/batch/Nightly_build/builds/batch 1.0.0 (build 2.0)/artifacts/.
at com.pmease.quickbuild.util.FileUtil.deleteDir(FileUtil.java:49)
at com.pmease.quickbuild.step.PublishStep.publishArtifacts(PublishStep.java:188)
at com.pmease.quickbuild.step.PublishStep.run(PublishStep.java:135)
at com.pmease.quickbuild.step.Step.trigger(Step.java:161)
at com.pmease.quickbuild.step.SerialStep.triggerMembers(SerialStep.java:35)
at com.pmease.quickbuild.step.CompositeStep.run(CompositeStep.java:129)
at com.pmease.quickbuild.step.Step.trigger(Step.java:161)
at com.pmease.quickbuild.model.Configuration.performBuild(Configuration.java:1251)
at com.pmease.quickbuild.model.Configuration.trigger(Configuration.java:980)
at com.pmease.quickbuild.triggeringinstance.ScheduledTriggeringInstance.execute(ScheduledTriggeringInstance.java:33)
at com.pmease.quickbuild.model.Queue$BuildRunner.run(Queue.java:221)
at java.lang.Thread.run(Thread.java:534)
Caused by: Unable to delete directory /usr/local/builds/publish/Service-tier/batch/Nightly_build/builds/batch 1.0.0 (build 2.0)/artifacts/.
at org.apache.tools.ant.taskdefs.Delete.removeDir(Delete.java:588)
at org.apache.tools.ant.taskdefs.Delete.execute(Delete.java:493)
at com.pmease.quickbuild.util.FileUtil.deleteDir(FileUtil.java:47)
... 11 more

Should the Publish step be deleting a directory?

 Comments   
Comment by Robin Shen [ 14/Mar/06 12:54 AM ]
The publish step first creates the same directory structures as the source directory, and tries to create soft links. However if there is nothing to publish, it will delete previously created directories.

In 1.0.5, the publish step will be modified to do not remove the artifacts directory itself.

Thanks for this reporting.
Generated at Fri Oct 03 18:52:22 UTC 2025 using JIRA 189.