daro Posted September 18, 2013 Share Posted September 18, 2013 Hi, I wrote a script which does some tests and after that it makes an archive and moves this archive to a server by ftp connection. To create the zip archive I use 7z.exe using this instruction: RunWait("7z.exe a " & $source & "\" & $s_LocalFile & " " & $logs & " " & $config) When I run my script from remote computer it works perfectly, but when I try to run it from jenkins the script doesn't make any archive file. I check everything many times but I can't figure it out why it doesn't work. Do you have any suggestions? Link to comment Share on other sites More sharing options...
FireFox Posted September 18, 2013 Share Posted September 18, 2013 Hi,Have you tried with quotes for the parameters?Something like:RunWait('7z.exe a "' & $source & "\" & $s_LocalFile & '" "' & $logs & '" "' & $config & '"')Br, FireFox. Link to comment Share on other sites More sharing options...
daro Posted September 18, 2013 Author Share Posted September 18, 2013 I tried this but it still doesn't work. Maybe the problem is with jenkins? Link to comment Share on other sites More sharing options...
FireFox Posted September 18, 2013 Share Posted September 18, 2013 Maybe, or admin rights? Link to comment Share on other sites More sharing options...
daro Posted September 18, 2013 Author Share Posted September 18, 2013 Right now I use an account called Test which is in the administrator group, so it has admin rights. I'll try to log on as Windows Administrator, but I suppose it makes no difference. Link to comment Share on other sites More sharing options...
daro Posted September 18, 2013 Author Share Posted September 18, 2013 Thanks for your help. I solved the problem. I run my script in other one by Run() comand and I have had to change it to RunWait(). Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now