Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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
hariprasadh balasubramanian is currently offline hariprasadh balasubramanian
Messages: 18
Registered: April 2013
Junior Member
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]

Report message to a 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
hariprasadh balasubramanian is currently offline hariprasadh balasubramanian
Messages: 18
Registered: April 2013
Junior Member
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: Wed Jul 23 01:57:05 EDT 2014

Powered by FUDForum. Page generated in 0.17176 seconds