release-conductor 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/release-conductor/tasks/release-conductor.rake +2 -0
- data/lib/release-conductor/version.rb +1 -1
- data/lib/release-conductor.rb +17 -13
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ccde73cd5124ac5e72caad5fc3b0fd8a85badd4
|
4
|
+
data.tar.gz: 77c9b84707ba975bf02d7a35ce6086e2c0bfc75f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89d728b425e25e173a39d68476085e21646f71e67f30e08fc2ea9b2207f9b7052120ef1e441b68e5a61af4b967355343b5454f386cf024e132b89e5480fce59b
|
7
|
+
data.tar.gz: fe2a750c31c3089e189f90863c6278298889746800da552791453d7062f40a6936885834ccb04757cd461937fde23c6d36de1a8feed16e714fd4ef13e188c7cc
|
@@ -1,5 +1,7 @@
|
|
1
1
|
namespace :release_conductor do
|
2
2
|
namespace :deploy do
|
3
|
+
|
4
|
+
desc "Run the release conductor and punch tickets that are ready for testing"
|
3
5
|
task :finished do
|
4
6
|
if fetch(:unfuddle_user).nil? || fetch(:unfuddle_password).nil?
|
5
7
|
puts "You must set environment variables UNFUDDLE_USER and UNFUDDLE_PASSWORD to use the release conductor"
|
data/lib/release-conductor.rb
CHANGED
@@ -77,19 +77,23 @@ module ReleaseConductor
|
|
77
77
|
end
|
78
78
|
|
79
79
|
def self.set_unfuddle_phase(config, tickets, phase_value_id)
|
80
|
-
tickets.
|
81
|
-
puts "release conductor:
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
80
|
+
if tickets.empty?
|
81
|
+
puts "release conductor: No tickets to punch."
|
82
|
+
else
|
83
|
+
tickets.each do |ticket|
|
84
|
+
puts "release conductor: punching ticket ##{ticket['number']}"
|
85
|
+
url = "/api/v1/projects/#{config.fetch(:project_id)}/tickets/#{ticket['id']}"
|
86
|
+
|
87
|
+
# puts "Fetching Ticket Details from #{url}"
|
88
|
+
ticket_details = get(config, url)
|
89
|
+
|
90
|
+
xml = %Q{
|
91
|
+
<ticket>
|
92
|
+
<field2-value-id>#{phase_value_id}</field2-value-id>
|
93
|
+
</ticket>
|
94
|
+
}
|
95
|
+
put(config,url,xml)
|
96
|
+
end
|
93
97
|
end
|
94
98
|
end
|
95
99
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: release-conductor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Mathews
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|
@@ -128,3 +128,4 @@ test_files:
|
|
128
128
|
- spec/capistrano_deploy_stubs.rake
|
129
129
|
- spec/spec_helper.rb
|
130
130
|
- spec/tasks_spec.rb
|
131
|
+
has_rdoc:
|