This plugin provide a connection for databases(ORACLE, MYSQL and POSTGRES)
Follow the exemple below to connect in one of this databases:
Past this code in your Jenkinsfile and execute this with yours parameters.
node {
def result = dataBaseConnect(
[
dbTyp: 'POSTGRES', -> POSTGRES/ORACLE/MYSQL
database: 'dbname',
host: 'hostname',
user: 'username',
password: 'password',
port: 'port',
query: "select teste ..."
]
)
echo result.query[0].teste
}
This plugin allow recovery a json result.
TODO Tell users how to configure your plugin here, include screenshots, pipeline examples and configuration-as-code examples.
TODO Decide where you're going to host your issues, the default is Jenkins JIRA, but you can also enable GitHub issues, If you use GitHub issues there's no need for this section; else add the following line:
Report issues and enhancements in the Jenkins issue tracker.
TODO review the default CONTRIBUTING file and make sure it is appropriate for your plugin, if not then add your own one adapted from the base file
Refer to our contribution guidelines
Licensed under MIT, see LICENSE