Class: Ansible::Ruby::Modules::Jenkins_job

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/web_infrastructure/jenkins_job.rb

Overview

Manage Jenkins jobs by using Jenkins REST API.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#configString?

Returns config in XML format.,Required if job does not yet exist.,Mutually exclusive with C(enabled).,Considered if C(state=present).

Returns:

  • (String, nil)

    config in XML format.,Required if job does not yet exist.,Mutually exclusive with C(enabled).,Considered if C(state=present).



12
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/jenkins_job.rb', line 12

attribute :config

#enabledSymbol?

Returns Whether the job should be enabled or disabled.,Mutually exclusive with C(config).,Considered if C(state=present).

Returns:

  • (Symbol, nil)

    Whether the job should be enabled or disabled.,Mutually exclusive with C(config).,Considered if C(state=present).



16
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/jenkins_job.rb', line 16

attribute :enabled

#nameString

Returns Name of the Jenkins job.

Returns:

  • (String)

    Name of the Jenkins job.



20
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/jenkins_job.rb', line 20

attribute :name

#passwordString?

Returns Password to authenticate with the Jenkins server.

Returns:

  • (String, nil)

    Password to authenticate with the Jenkins server.



24
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/jenkins_job.rb', line 24

attribute :password

#state:present, ...

Returns Attribute that specifies if the job has to be created or deleted.

Returns:

  • (:present, :absent, nil)

    Attribute that specifies if the job has to be created or deleted.



28
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/jenkins_job.rb', line 28

attribute :state

#tokenString?

Returns API token used to authenticate alternatively to password.

Returns:

  • (String, nil)

    API token used to authenticate alternatively to password.



32
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/jenkins_job.rb', line 32

attribute :token

#urlString?

Returns URL where the Jenkins server is accessible.

Returns:

  • (String, nil)

    URL where the Jenkins server is accessible.



36
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/jenkins_job.rb', line 36

attribute :url

#userString?

Returns User to authenticate with the Jenkins server.

Returns:

  • (String, nil)

    User to authenticate with the Jenkins server.



40
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/jenkins_job.rb', line 40

attribute :user