daro Posted September 18, 2013 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?
FireFox Posted September 18, 2013 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.
daro Posted September 18, 2013 Author Posted September 18, 2013 I tried this but it still doesn't work. Maybe the problem is with jenkins?
daro Posted September 18, 2013 Author 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.
daro Posted September 18, 2013 Author 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().
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