Change By: Jeff Humphry (29/Apr/13 3:07 PM)
Description: Running Maven build project pulled from GitHub. It's failing on the third project trying to clean. Can't delete some files.

Attached is the console output log [^ConsoleText.txt]

When I build using Maven at the command line, I get the same result, with some additional information; some of the folders seem to be created by Jenkins with higher security: 

Using   {{mvn clean install -e}}
 \\ \\

{noformat}[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project com.sap.
core: Failed to clean project: Failed to delete D:\Jenkins\jobs\CQ_Development_Branch_jtest\workspace\bundles\com.sap.co
re\target\generated-sources\annotations -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-clean-plug
in:2.5:clean (default-clean) on project com.sap.core: Failed to clean project: Failed to delete D:\Jenkins\jobs\CQ_Devel
opment_Branch_jtest\workspace\bundles\com.sap.core\target\generated-sources\annotations
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
        ...
Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to clean project: Failed to delete D:\Jenkins\jobs\CQ_
Development_Branch_jtest\workspace\bundles\com.sap.core\target\generated-sources\annotations
        at org.apache.maven.plugin.clean.CleanMojo.execute(CleanMojo.java:215)
        ...
Caused by: java.io.IOException: Failed to delete D:\Jenkins\jobs\CQ_Development_Branch_jtest\workspace\bundles\com.sap.c
ore\target\generated-sources\annotations
        at org.apache.maven.plugin.clean.Cleaner.delete(Cleaner.java:249)
        ...
{noformat}

I attached the full console output [^ConsoleText_M2.txt]

If I try to go and manually delete the files, I get a prompt that I need administrator privileges to delete:

[^ ! AdminPriv.jpg ] |width=500!

Tried the following:
* Run the service under account that is administrator on the machine
* Set compatibility mode on jenkins.exe to run with administrative privileges
* Set the "Wipe out workspace before build" option
* Add mvn clean as a pre-step
* Disable all virus-scanning on the server

All give same result.

A couple other oddities:
* Adding the -e switch to the goals in the Jenkins configuration doesn't seem to work.
* The Jenkins output doesn't have any information about the file delete IO error.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to