1

Same configuration is working with window 10. but when i tried same configuration run with ubuntu, its showing an error.

error message while running with jenkins

  • You sure your code will work in Ubuntu?based on error seems like it is issue with code than plugin – slashpai Mar 22 '18 at 17:23
  • Please try to run jenkins with Admin privileged – Afgan Mar 23 '18 at 09:33
  • I've seen this sort of error whenever there's a process that's holding a lock on a file in some subfolder that Maven is trying to clean. Check that your Tomcat instance is really stopped (look for java processes in Task Manager that shouldn't be there). I've also created this issue for myself by opening the access log in a text editor, and then forgetting to close the editor after shutting down the Tomcat and trying to run a new build. – Afgan Mar 23 '18 at 10:44
  • thanks for reply. I stopped tomcat and i gave all permission (read, write, execute) permission for that file. But still i am getting same error. – Silentkiller Mar 25 '18 at 13:47

2 Answers2

0

The clean plugin cannot delete the named folder. Make sure the Jenkins has the right to delete the folder and that it is not locked in some other way.

By the way: Copy the text of your error into the question, don't make a bad photo.

J Fabian Meier
  • 26,766
  • 8
  • 52
  • 98
0

Some process has hold of the file /home/xelpmoc-06/Documents/Doc/zerodha/target/classes/LoginZerodha/Zerodha/App.class. Java process or Eclipse or some other program is doing some job with it. So that's why its showing that error. So please kill Java Process or restart Eclipse. May be your jenkins build failure, also can cause this to happen. So if nothing works out please restart your jenkins itself.

Here I am attaching a link that may be helpful to you. Please go through this. Hope this helps.

SV Madhava Reddy
  • 1,530
  • 2
  • 11
  • 28