Module: Jujube::Components::Builders

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

Overview

Helper methods for creating builder components.

Instance Method Summary collapse

Instance Method Details

#copyartifact(options = {}) ⇒ Hash

Specify a copyartifact builder for a job. Requires the copyartifact plugin.

See https://jenkins-job-builder.readthedocs.io/en/latest/builders.html#builders.copyartifact.

Parameters:

  • options (Hash) (defaults to: {})

    The configuration options for the component.

Returns:

  • (Hash)

    The specification for the component.



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

standard_component :copyartifact

#shell(command) ⇒ Hash

Parameters:

  • command (String)

    The shell command to execute.

Returns:

  • (Hash)

    The specification for the component.



23
24
25
# File 'lib/jujube/components/builders.rb', line 23

def shell(command)
  {'shell' => command}
end