MySQL integration

42 katselukertaa
Siirry ensimmäiseen lukemattomaan viestiin

Luis Silva

lukematon,
14.12.2023 klo 6.29.2514.12.2023
vastaanottaja 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
Vastaa kaikille
Vastaa kirjoittajalle
Välitä
Viesti on poistettu
0 uutta viestiä