Module: Jujube::Components::Scm
Overview
Helper methods for creating SCM components.
store Pundle Specifications collapse
-
#bundle(name) ⇒ Hash
Specify a
bundle
to check for a #store SCM. -
#package(name) ⇒ Hash
Specify a
package
to check for a #store SCM.
Instance Method Summary collapse
-
#git(options = {}) ⇒ Hash
Specify a
git
SCM for a job. -
#store(options = {}) {|pundles| ... } ⇒ Hash
Specify a
store
SCM for a job.
Methods included from Macros
Instance Method Details
#bundle(name) ⇒ Hash
Specify a bundle
to check for a #store SCM.
54 55 56 |
# File 'lib/jujube/components/scm.rb', line 54 def bundle(name) {"bundle" => name} end |
#git(options = {}) ⇒ Hash
Specify a git
SCM for a job.
See https://jenkins-job-builder.readthedocs.io/en/latest/publishers.html#scm.git.
15 |
# File 'lib/jujube/components/scm.rb', line 15 standard_component :git |
#package(name) ⇒ Hash
Specify a package
to check for a #store SCM.
46 47 48 |
# File 'lib/jujube/components/scm.rb', line 46 def package(name) {"package" => name} end |
#store(options = {}) {|pundles| ... } ⇒ Hash
Specify a store
SCM for a job.
See https://jenkins-job-builder.readthedocs.io/en/latest/scm.html#scm.store.
store
can watch multiple pundles (packages or bundles) The specification for each
pundle is added in a nested configuration block using the #package or #bundle method.
36 37 38 |
# File 'lib/jujube/components/scm.rb', line 36 def store( = {}, &block) to_config("store", (:pundles, , &block)) end |