What would cause a `mysql` command ran by Jenkins to use use `root` as its user? -



What would cause a `mysql` command ran by Jenkins to use use `root` as its user? -

i have jenkins build job uses several "execute shell" build steps. shells run bash script contains several calls mysql command.

the execute shell task looks like:

./run-mysql-scripts.sh ${mysql_host} ${other_parameter} ...

the bash scripts contain several calls like:

mysql -h $1 < somescript.sql

the username not specified scripts , should inferred uses jenkins@jenkinsserver mysql credentials. has worked year. builds have started generating errors script attempting utilize root mysql user:

error 1045 (28000): access denied user 'root'@'jenkinsserver' (using password: no)

this has me baffled. when adding whoami command jenkins job returns jenkins, job running jenkins user. when login jenkins user , execute same commands job runs expected, using jenkins@jenkinsserver mysql auth.

my recollection occurred when setting jenkins (about year ago), self-resolved quickly. have had big environmental changes might have caused issue--our jenkins server ubuntu server 13.10 updated 14.04.1 lts via do-release-upgrade. other jobs , services on server appear working normally.

what other possible reasons result in jenkins job using root user when calling mysql?

mysql jenkins

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -