Module: Jujube::Components::Scm
Overview
Helper methods for creating SCM components.
store Pundle Specifications collapse
-
#bundle(name) ⇒ Hash
Specify a
bundleto check for a #store SCM. -
#package(name) ⇒ Hash
Specify a
packageto check for a #store SCM.
Instance Method Summary collapse
-
#git(options = {}) ⇒ Hash
Specify a
gitSCM for a job. -
#store(options = {}) {|pundles| ... } ⇒ Hash
Specify a
storeSCM for a job.
Methods included from Macros
Instance Method Details
#bundle(name) ⇒ Hash
Specify a bundle to check for a #store SCM.
55 56 57 |
# File 'lib/jujube/components/scm.rb', line 55 def bundle(name) {"bundle" => name} end |
#git(options = {}) ⇒ Hash
Specify a git SCM for a job.
See http://ci.openstack.org/jenkins-job-builder/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.
47 48 49 |
# File 'lib/jujube/components/scm.rb', line 47 def package(name) {"package" => name} end |
#store(options = {}) {|pundles| ... } ⇒ Hash
Specify a store SCM for a job.
This SCM requires support in jenkins-job-builder that has not yet been merged. See https://review.openstack.org/85729 for the patch.
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.
37 38 39 |
# File 'lib/jujube/components/scm.rb', line 37 def store( = {}, &block) to_config("store", (:pundles, , &block)) end |