Skip to main content



      Home
Home » Archived » Hudson » Hudson copy command in shell executable(Hudson copy command in shell executable)
Hudson copy command in shell executable [message #1084877] Mon, 12 August 2013 03:05 Go to next message
Eclipse UserFriend
I want to copy the war build using ant from workspace location to var/www/html.
i have configured in Build Section
Execute Shell
Command cp -r /var/lib/hudson/jobs/****/workspace/dist/****/var/www/html

Its is throwing error as Permission denied if the issue the command without sudo.
cannot create regular file.Permission denied

+ cp -r /var/lib/hudson/jobs/****/workspace/dist/****.war /var/www/html
cp: cannot create regular file `/var/www/html/****.war': Permission denied
Finished: FAILURE



If i issue the command with sudo,then it is throwing someother error.
workspace] $ /bin/sh -xe /tmp/hudson7593911899569522906.sh
+ sudo cp -r /var/lib/hudson/jobs/****/workspace/dist/*****.war /var/www/html
sudo: sorry, you must have a tty to run sudo
Finished: FAILURE



Its ruuning as hudson user.i check by issuing "echo $USER".its results ad hudson.i gave 777 premission to the destination folder /var/ww/html.added hudson user in visudo file.I dont know what iam missing.

[Updated on: Mon, 12 August 2013 03:13] by Moderator

Re: Hudson copy command in shell executable [message #1085710 is a reply to message #1084877] Tue, 13 August 2013 05:00 Go to previous message
Eclipse UserFriend
Hello,

Please somebody look into the above issue.

Thanks
HariPrasadh


Previous Topic:Hudson 3.1 Release Candidate 1 Now Available
Next Topic:Maven Build : ArrayIndexOutOfBoundsException
Goto Forum:
  


Current Time: Sat Jul 05 06:13:36 EDT 2025

Powered by FUDForum. Page generated in 0.02677 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top