Re: Multiple commands

2017-09-05 Thread Victor Martinez
Hey, There are some examples about running batch mysql scripts in the below stackoverflow link: https://stackoverflow.com/questions/8830773/run-mysql-script-by-batch-script I hope it helps -- You received this message because you are subscribed to the Google Groups "Jenkins Users" gro

Re: Multiple commands

2017-09-05 Thread harvey
onment variables. > > > > Regards, > > Daniel. > > > > *From: *harvey > *Sent: *04 September 2017 14:01 > *To: *Jenkins Users > *Subject: *Re: Multiple commands > > > > Hi Daniel, > > Thank you for your reply. I am using a freestyle job and unf

RE: Multiple commands

2017-09-04 Thread Daniel Butler
. Then you can refer to them in the batch script as regular environment variables. Regards, Daniel. From: harvey Sent: 04 September 2017 14:01 To: Jenkins Users Subject: Re: Multiple commands Hi Daniel, Thank you for your reply. I am using a freestyle job and unfortunately the script didnot work

Re: Multiple commands

2017-09-04 Thread harvey
Hi Daniel, Thank you for your reply. I am using a freestyle job and unfortunately the script didnot work in my case: I choosed execute windows batch command and typed the following: """ cd c:\ \mysql --username --password -e "DROP DATABASE xyz; CREATE DATABASE xyz;" """ Is there someth

RE: Multiple commands

2017-09-04 Thread Daniel Butler
Are you using freestyle jobs or pipeline? With Pipeline: When you use a bat/sh step you’re providing a batch or shell script rather than virtual input into a console. In your case you’d need to do something like: bat """ cd c:\... ...\mysql --user %user% --password %password% -e "DROP DATABASE