Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 2.25 KB

README.md

File metadata and controls

58 lines (39 loc) · 2.25 KB

database-steps

Build Status Contributors Jenkins Plugin GitHub release Jenkins Plugin Installs

Introduction

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.

Getting started

TODO Tell users how to configure your plugin here, include screenshots, pipeline examples and configuration-as-code examples.

Issues

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.

Contributing

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

LICENSE

Licensed under MIT, see LICENSE