MySQL integration

47 views
Skip to first unread message

Luis Silva

unread,
Dec 14, 2023, 6:29:25 AM12/14/23
to Jenkins Users
Hi guys,

I'm trying to connect to a MySQL Database from a jenkins pipeline. I understand that one way of doing this, is to install mysql on the agent node and basically execute it on the command line. 

However, I'm using a build-in node and I don't think I can install mysql there. Is there a way to do this? I can see on the system settings a Database Configuration and I have installed the MySQL plugin as well. 


Screenshot 2023-12-14 at 11.58.21.png

However, when I try to run it, I get this error:

org.jenkinsci.plugins.workflow.steps.MissingContextVariableException: Required context class org.jenkinsci.plugins.database.steps.DatabaseContext is missing

Any tips of what I'm missing?

Many thanks in advanced!!
Luís
Reply all
Reply to author
Forward
Message has been deleted
0 new messages