Class: JenkinsJob::Postbuild::PostbuildTrigger
- Inherits:
- BasicObject
- Defined in:
- lib/rubyjobbuilderdsl/postbuild/trigger.rb
Instance Attribute Summary collapse
-
#current_parameters_ ⇒ Object
readonly
Returns the value of attribute current_parameters_.
-
#fail_on_missing_ ⇒ Object
readonly
Returns the value of attribute fail_on_missing_.
-
#file_ ⇒ Object
readonly
Returns the value of attribute file_.
-
#pass_through_git_commit_ ⇒ Object
readonly
Returns the value of attribute pass_through_git_commit_.
-
#predefined_parameters_ ⇒ Object
readonly
Returns the value of attribute predefined_parameters_.
-
#project_ ⇒ Object
readonly
Returns the value of attribute project_.
-
#trigger_with_no_parameters_ ⇒ Object
readonly
Returns the value of attribute trigger_with_no_parameters_.
Instance Method Summary collapse
- #current_parameters(value) ⇒ Object
- #fail_on_missing(value = false) ⇒ Object
- #file(value) ⇒ Object
-
#initialize(*project) ⇒ PostbuildTrigger
constructor
A new instance of PostbuildTrigger.
- #pass_through_git_commit(value = true) ⇒ Object
- #predefined_parameters(value) ⇒ Object
- #trigger_with_no_parameters(value) ⇒ Object
Constructor Details
#initialize(*project) ⇒ PostbuildTrigger
8 9 10 11 |
# File 'lib/rubyjobbuilderdsl/postbuild/trigger.rb', line 8 def initialize(*project) @project_ = project @trigger_with_no_parameters_ = false end |
Instance Attribute Details
#current_parameters_ ⇒ Object (readonly)
Returns the value of attribute current_parameters_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/postbuild/trigger.rb', line 4 def current_parameters_ @current_parameters_ end |
#fail_on_missing_ ⇒ Object (readonly)
Returns the value of attribute fail_on_missing_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/postbuild/trigger.rb', line 4 def fail_on_missing_ @fail_on_missing_ end |
#file_ ⇒ Object (readonly)
Returns the value of attribute file_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/postbuild/trigger.rb', line 4 def file_ @file_ end |
#pass_through_git_commit_ ⇒ Object (readonly)
Returns the value of attribute pass_through_git_commit_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/postbuild/trigger.rb', line 4 def pass_through_git_commit_ @pass_through_git_commit_ end |
#predefined_parameters_ ⇒ Object (readonly)
Returns the value of attribute predefined_parameters_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/postbuild/trigger.rb', line 4 def predefined_parameters_ @predefined_parameters_ end |
#project_ ⇒ Object (readonly)
Returns the value of attribute project_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/postbuild/trigger.rb', line 4 def project_ @project_ end |
#trigger_with_no_parameters_ ⇒ Object (readonly)
Returns the value of attribute trigger_with_no_parameters_.
4 5 6 |
# File 'lib/rubyjobbuilderdsl/postbuild/trigger.rb', line 4 def trigger_with_no_parameters_ @trigger_with_no_parameters_ end |
Instance Method Details
#current_parameters(value) ⇒ Object
25 26 27 |
# File 'lib/rubyjobbuilderdsl/postbuild/trigger.rb', line 25 def current_parameters(value) @current_parameters_ = value end |
#fail_on_missing(value = false) ⇒ Object
13 14 15 |
# File 'lib/rubyjobbuilderdsl/postbuild/trigger.rb', line 13 def fail_on_missing(value = false) @fail_on_missing_ = value end |
#file(value) ⇒ Object
17 18 19 |
# File 'lib/rubyjobbuilderdsl/postbuild/trigger.rb', line 17 def file(value) @file_ = value end |
#pass_through_git_commit(value = true) ⇒ Object
33 34 35 |
# File 'lib/rubyjobbuilderdsl/postbuild/trigger.rb', line 33 def pass_through_git_commit(value = true) @pass_through_git_commit_ = value end |
#predefined_parameters(value) ⇒ Object
21 22 23 |
# File 'lib/rubyjobbuilderdsl/postbuild/trigger.rb', line 21 def predefined_parameters(value) @predefined_parameters_ = value.map { |key, val| "#{key}=#{val}" }.join("\n") end |
#trigger_with_no_parameters(value) ⇒ Object
29 30 31 |
# File 'lib/rubyjobbuilderdsl/postbuild/trigger.rb', line 29 def trigger_with_no_parameters(value) @trigger_with_no_parameters_ = value end |