Module: Jujube::Components::Publishers

Extended by:
Macros
Included in:
Jujube::Components
Defined in:
lib/jujube/components/publishers.rb

Overview

Helper methods for creating publisher components.

xunit Test Types collapse

Instance Method Summary collapse

Instance Method Details

#archive(options = {}) ⇒ Hash



15
# File 'lib/jujube/components/publishers.rb', line 15

standard_component :archive

#cppcheck(options = {}) ⇒ Hash



24
# File 'lib/jujube/components/publishers.rb', line 24

standard_component :cppcheck

#email_ext(options = {}) ⇒ Hash



33
# File 'lib/jujube/components/publishers.rb', line 33

standard_component :email_ext

#fitnesse(options = {}) ⇒ Hash

Specify a fitnesse publisher for a job.

This publisher requires support in jenkins-job-builder that has not yet been merged. See https://review.openstack.org/87711 for the patch.



43
# File 'lib/jujube/components/publishers.rb', line 43

standard_component :fitnesse

#ircbot(options = {}) ⇒ Hash



52
# File 'lib/jujube/components/publishers.rb', line 52

standard_component :ircbot

#junit(options = {}) ⇒ Hash



61
# File 'lib/jujube/components/publishers.rb', line 61

standard_component :junit

#trigger(options = {}) ⇒ Hash



70
# File 'lib/jujube/components/publishers.rb', line 70

standard_component :trigger

#unittest(options = {}) ⇒ Hash

Configure a unittest test type for an #xunit publisher.

See http://ci.openstack.org/jenkins-job-builder/publishers.html#publishers.xunit.



103
# File 'lib/jujube/components/publishers.rb', line 103

named_config :unittest

#xunit(options = {}) {|types| ... } ⇒ Hash

Specify an xunit publisher for a job.

See http://ci.openstack.org/jenkins-job-builder/publishers.html#publishers.xunit.

xunit can publish multiple sets of test results. The specification for each set of test results is added in a nested configuration block using the #unittest method.

Examples:

job "xunit-example" do |j|
  j.publishers << xunit do |types|
    types << unittest(pattern: "PATTERN", deleteoutput: false)
  end
end

Yield Parameters:

  • types (Array)

    An array to which nested test type specifications should be added by the block.



90
91
92
# File 'lib/jujube/components/publishers.rb', line 90

def xunit(options = {}, &block)
  to_config("xunit", nested_options(:types, options, &block))
end