Class: JenkinsJob::Common::Git

Inherits:
BasicObject
Defined in:
lib/rubyjobbuilderdsl/common/git.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGit

Returns a new instance of Git.



8
9
10
11
12
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 8

def initialize
  @fastpoll_ = true
  @branches_ = ['*/master']
  @jgit_ = false
end

Instance Attribute Details

#basedir_Object (readonly)

Returns the value of attribute basedir_.



4
5
6
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4

def basedir_
  @basedir_
end

#branches_Object (readonly)

Returns the value of attribute branches_.



4
5
6
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4

def branches_
  @branches_
end

#choosing_strategy_Object (readonly)

Returns the value of attribute choosing_strategy_.



4
5
6
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4

def choosing_strategy_
  @choosing_strategy_
end

#clean_Object (readonly)

Returns the value of attribute clean_.



4
5
6
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4

def clean_
  @clean_
end

#credentials_Object (readonly)

Returns the value of attribute credentials_.



4
5
6
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4

def credentials_
  @credentials_
end

#fastpoll_Object (readonly)

Returns the value of attribute fastpoll_.



4
5
6
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4

def fastpoll_
  @fastpoll_
end

#files_Object (readonly)

Returns the value of attribute files_.



4
5
6
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4

def files_
  @files_
end

#git_config_email_Object (readonly)

Returns the value of attribute git_config_email_.



4
5
6
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4

def git_config_email_
  @git_config_email_
end

#git_config_name_Object (readonly)

Returns the value of attribute git_config_name_.



4
5
6
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4

def git_config_name_
  @git_config_name_
end

#jgit_Object (readonly)

Returns the value of attribute jgit_.



4
5
6
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4

def jgit_
  @jgit_
end

#reference_repo_Object (readonly)

Returns the value of attribute reference_repo_.



4
5
6
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4

def reference_repo_
  @reference_repo_
end

#refspec_Object (readonly)

Returns the value of attribute refspec_.



4
5
6
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4

def refspec_
  @refspec_
end

#url_Object (readonly)

Returns the value of attribute url_.



4
5
6
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4

def url_
  @url_
end

#wipe_workspace_Object (readonly)

Returns the value of attribute wipe_workspace_.



4
5
6
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 4

def wipe_workspace_
  @wipe_workspace_
end

Instance Method Details

#basedir(value) ⇒ Object



18
19
20
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 18

def basedir(value)
  @basedir_ = value
end

#branch(*value) ⇒ Object



31
32
33
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 31

def branch(*value)
  @branches_ = value
end

#branches(*value) ⇒ Object

Deprecated.

Please use #branch



27
28
29
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 27

def branches(*value)
  branch(*value)
end

#choosing_strategy(value) ⇒ Object



39
40
41
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 39

def choosing_strategy(value)
  @choosing_strategy_ = value
end

#clean(value = false) ⇒ Object



59
60
61
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 59

def clean(value = false)
  @clean_ = value
end

#credentials(value) ⇒ Object



71
72
73
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 71

def credentials(value)
  @credentials_ = value
end

#fastpoll(value = true) ⇒ Object



51
52
53
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 51

def fastpoll(value = true)
  @fastpoll_ = value
end

#file(*value) ⇒ Object



55
56
57
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 55

def file(*value)
  @files_ = value
end

#git_config_email(value) ⇒ Object



47
48
49
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 47

def git_config_email(value)
  @git_config_email_ = value
end

#git_config_name(value) ⇒ Object



43
44
45
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 43

def git_config_name(value)
  @git_config_name_ = value
end

#jgitObject



67
68
69
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 67

def jgit
  @jgit_ = true
end

#reference_repo(value) ⇒ Object



22
23
24
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 22

def reference_repo(value)
  @reference_repo_ = value
end

#refspec(value) ⇒ Object



35
36
37
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 35

def refspec(value)
  @refspec_ = value
end

#url(value) ⇒ Object



14
15
16
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 14

def url(value)
  @url_ = value
end

#wipe_workspace(value = true) ⇒ Object



63
64
65
# File 'lib/rubyjobbuilderdsl/common/git.rb', line 63

def wipe_workspace(value = true)
  @wipe_workspace_ = value
end