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