Class: Jenkins::ProjectScmGit

Inherits:
ProjectScm show all
Defined in:
lib/jenkins/project_scm.rb

Instance Method Summary collapse

Methods inherited from ProjectScm

discover, supported

Constructor Details

#initialize(url = nil) ⇒ ProjectScmGit

Returns a new instance of ProjectScmGit.



14
15
16
# File 'lib/jenkins/project_scm.rb', line 14

def initialize(url = nil)
  @url = url
end

Instance Method Details

#urlObject



18
19
20
# File 'lib/jenkins/project_scm.rb', line 18

def url
  @url ||= `git config remote.origin.url`.strip
end