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
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
. 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
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
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