Skip to content

gutemberg/database-connect-steps-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published