WTBuildHelpers 0.2.1 → 0.2.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.
- checksums.yaml +4 -4
- data/lib/WTBuildHelpers/version.rb +1 -1
- data/lib/jira.rb +1 -0
- data/lib/teamcity.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ec35c6b582f9c0be3c38c5119f245cf7a07f739
|
4
|
+
data.tar.gz: f2fbd77dac604af4dd1eb44f3363381f318b8b99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60d57e67f3cf76bc886cd11df27163636edff0b871496a2ec2707a54bc93634adf98ca1f47fb9ff50aea221b33d9e7f78b1ae42a721714442d800a8658ca72f3
|
7
|
+
data.tar.gz: aa3c032c5983e43a130d49e005e791fba76d28c09c499b05be3f798ae58bf8e133fb0cd165e1e64717674d8716386df70bc43fb523b8545242dcc1cf2b67a7a5
|
data/lib/jira.rb
CHANGED
@@ -123,6 +123,7 @@ module WTBuildHelpers::JIRA
|
|
123
123
|
end
|
124
124
|
|
125
125
|
def self.get_git_history(commit_range)
|
126
|
+
puts "Getting git history for #{commit_range}"
|
126
127
|
happyface = "\u263A".encode('utf-8')
|
127
128
|
git_log = `git --no-pager log --format="%B#{happyface}" #{commit_range} `
|
128
129
|
|
data/lib/teamcity.rb
CHANGED
@@ -70,6 +70,7 @@ module WTBuildHelpers::TeamCity
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def self.get_last_successful_rev(options, branch)
|
73
|
+
STDERR.puts "Getting last successful revision from branch #{branch}"
|
73
74
|
auth = "#{options.username}:#{options.password}"
|
74
75
|
auth_token = Base64.strict_encode64(auth)
|
75
76
|
|
@@ -88,6 +89,8 @@ module WTBuildHelpers::TeamCity
|
|
88
89
|
if json_response["build"] && json_response["build"].count > 0
|
89
90
|
last_build = json_response["build"].first
|
90
91
|
last_build_id = last_build["id"]
|
92
|
+
STDERR.puts "Got #{json_response["build"].count} successful builds, last successful was #{last_build_id}"
|
93
|
+
|
91
94
|
|
92
95
|
build_full_url = "#{options.url}/app/rest/builds/id:#{last_build["id"]}"
|
93
96
|
build_response = RestClient.get(build_full_url, headers=headers)
|
@@ -104,6 +107,7 @@ module WTBuildHelpers::TeamCity
|
|
104
107
|
branch.strip!
|
105
108
|
|
106
109
|
start_revision = ENV["BUILD_VCS_NUMBER"]
|
110
|
+
STDERR.puts "Start revision is #{start_revision}"
|
107
111
|
|
108
112
|
begin
|
109
113
|
end_revision = get_last_successful_rev(options, branch)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: WTBuildHelpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- WillowTreeApps
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: OptionParser
|