Module: HybridPlatformsConductor::CommonConfigDsl::Bitbucket
- Defined in:
- lib/hybrid_platforms_conductor/common_config_dsl/bitbucket.rb
Overview
Add common Bitbucket config DSL to declare known Bitbucket repositories
Instance Attribute Summary collapse
-
#known_bitbucket_repos ⇒ Object
readonly
List of known Bitbucket repos Array< Hash<Symbol, Object> > * url (String): URL to the Bitbucket server * project (String): Project name from the Bitbucket server, storing repositories * repos (Array<String> or Symbol): List of repository names from this project, or :all for all * jenkins_ci_url (String or nil): Corresponding Jenkins CI URL, or nil if none * checks (Hash<Symbol, Object>): Checks definition to be perform on those repositories (see the #for_each_bitbucket_repo to know the structure).
Instance Method Summary collapse
-
#bitbucket_repos(url:, project:, repos: :all, jenkins_ci_url: nil, checks: {}) ⇒ Object
Register new Bitbucket repositories.
-
#init_bitbucket ⇒ Object
Initialize the DSL.
Instance Attribute Details
#known_bitbucket_repos ⇒ Object (readonly)
List of known Bitbucket repos Array< Hash<Symbol, Object> >
-
url (String): URL to the Bitbucket server
-
project (String): Project name from the Bitbucket server, storing repositories
-
repos (Array<String> or Symbol): List of repository names from this project, or :all for all
-
jenkins_ci_url (String or nil): Corresponding Jenkins CI URL, or nil if none
-
checks (Hash<Symbol, Object>): Checks definition to be perform on those repositories (see the #for_each_bitbucket_repo to know the structure)
15 16 17 |
# File 'lib/hybrid_platforms_conductor/common_config_dsl/bitbucket.rb', line 15 def known_bitbucket_repos @known_bitbucket_repos end |
Instance Method Details
#bitbucket_repos(url:, project:, repos: :all, jenkins_ci_url: nil, checks: {}) ⇒ Object
Register new Bitbucket repositories
- Parameters
-
url (String): URL to the Bitbucket server
-
project (String): Project name from the Bitbucket server, storing repositories
-
repos (Array<String> or Symbol): List of repository names from this project, or :all for all [default: :all]
-
jenkins_ci_url (String or nil): Corresponding Jenkins CI URL, or nil if none [default: nil]
-
checks (Hash<Symbol, Object>): Checks definition to be perform on those repositories (see the #for_each_bitbucket_repo to know the structure) [default: {}]
33 34 35 36 37 38 39 40 41 |
# File 'lib/hybrid_platforms_conductor/common_config_dsl/bitbucket.rb', line 33 def bitbucket_repos(url:, project:, repos: :all, jenkins_ci_url: nil, checks: {}) @known_bitbucket_repos << { url: url, project: project, repos: repos, jenkins_ci_url: jenkins_ci_url, checks: checks } end |
#init_bitbucket ⇒ Object
Initialize the DSL
18 19 20 21 22 23 |
# File 'lib/hybrid_platforms_conductor/common_config_dsl/bitbucket.rb', line 18 def init_bitbucket # List of Bitbucket repositories definitions # Array< Hash<Symbol, Object> > # Each definition is just mapping the signature of #known_bitbucket_repos @known_bitbucket_repos = [] end |