capistrano-jenkins 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- capistrano-jenkins (0.1.1)
4
+ capistrano-jenkins (0.1.2)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = "capistrano-jenkins"
4
- s.version = "0.1.1"
4
+ s.version = "0.1.2"
5
5
  s.authors = ["Martin Jonsson"]
6
6
  s.email = ["martin.jonsson@gmail.com"]
7
7
  s.homepage = "http://github.com/martinj/capistrano-jenkins"
@@ -49,6 +49,10 @@ Capistrano::Configuration.instance.load do
49
49
  retrying = false
50
50
  [0].each do |i|
51
51
  sha = `git ls-remote #{repository} #{branch}`.sub!(/\s+.*$/, '').chomp
52
+ puts "First sha #{sha}"
53
+ #if it was a tag we need to get the sha to the commit
54
+ sha = `git log --pretty=format:'%H' -n1 #{sha}`.chomp
55
+ puts "Second sha #{sha}"
52
56
  build = get_build(sha, fetch_json("#{jenkins_url}/job/#{jenkins_job_name}/api/json?depth=1"))
53
57
 
54
58
  unless build then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-jenkins
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-18 00:00:00.000000000 Z
12
+ date: 2013-10-16 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Capistrano recipe to validate the build on jenkins status before deploying
15
15
  email: