|Hudson copy command in shell executable [message #1084877]
||Mon, 12 August 2013 07:05
| hariprasadh balasubramanian
Registered: April 2013
I want to copy the war build using ant from workspace location to var/www/html.|
i have configured in Build Section
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
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
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
Powered by FUDForum
. Page generated in 0.11477 seconds