jbox-web/job-database-manager-mysql

View on GitHub
models/job_database_manager_mysql_descriptor.rb

Summary

Maintainability
A
0 mins
Test Coverage
# This is the main Descriptor for your plugin.
# It handles plugin's global configuration.
# It must respond to these methods :
#  * load
#  * save
#  * configure

require 'jenkins_plugin_base'
require 'job_database_manager'

class JobDatabaseManagerMysqlDescriptor < Jenkins::Model::DefaultDescriptor

  #
  # Include PluginConfig::Base module to add the basic methods.
  #
  include ::JenkinsPluginBase::BaseConfig

  #
  # Declare your plugin name here. (Will be use in XML file)
  #
  set_plugin_name 'job-database-manager-mysql'

  #
  # Declare your global plugin settings here :
  # <param name> => <default_value>
  #
  set_plugin_settings({
    :db_user         => 'jenkins',
    :db_password     => 'jenkins',
    :db_server_host  => '127.0.0.1',
    :db_server_port  => '3306',
    :db_bin_path     => '/usr/bin/mysql'
  })

end