Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 07:05 Go to next message
hariprasadh balasubramanian is currently offline hariprasadh balasubramanianFriend
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 07: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 09:00 Go to previous message
hariprasadh balasubramanian is currently offline hariprasadh balasubramanianFriend
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: Fri Mar 29 10:49:04 GMT 2024

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

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

Back to the top