fastlane-plugin-gs_project_flow_ios 0.4.9 → 0.4.10
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab90228b16f8973b09d4fc43f3ebe60d4b86ccc0
|
4
|
+
data.tar.gz: 7eb71ade4ae04199472e9aa2bf7bb590eed5d4bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94b232dc34353276fea12eb10ed186b1a729b33f476a400679c646ec210144b8b4fba94fc07b1a6b8d5c1b24c1a6849daa1abc4c9f816e90699a7cb5de3e8141
|
7
|
+
data.tar.gz: 2db480d6bb3b11478947f26f8f6bcea2efe047b50ddcc9f4e41f6f4de8e6af97738b2a32af692705c54b957edd9b30a10a3fe2c682579c59bb2f1840c7a79d69
|
@@ -105,35 +105,43 @@ module Fastlane
|
|
105
105
|
end
|
106
106
|
def self.send_report(message, buildState, lane)
|
107
107
|
# Dir.chdir Dir.pwd+"/../../../../" do
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
108
|
+
UI.message(Dir.pwd)
|
109
|
+
params = Hash.new
|
110
|
+
params["state"] = buildState
|
111
|
+
params["alias"] = ENV["ALIAS"]
|
112
112
|
|
113
|
-
|
114
|
-
|
115
|
-
|
113
|
+
if buildState == BuildState::FAILURE
|
114
|
+
params["message"] = message
|
115
|
+
end
|
116
116
|
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
117
|
+
if lane == :beta
|
118
|
+
params["cmd"] = "beta"
|
119
|
+
elsif lane == :rc
|
120
|
+
params["cmd"] = "rc"
|
121
|
+
elsif lane == :release
|
122
|
+
params["cmd"] = "release"
|
123
|
+
end
|
124
124
|
|
125
125
|
|
126
126
|
|
127
|
-
|
127
|
+
paramsJSON = params.to_json
|
128
128
|
|
129
129
|
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
130
|
+
client = Spaceship::GSBotClient.new
|
131
|
+
url = 'jobStates'
|
132
|
+
response = client.request(:post) do |req|
|
133
|
+
req.url url
|
134
|
+
req.body = paramsJSON
|
135
|
+
req.headers['Content-Type'] = 'application/json'
|
136
|
+
end
|
137
|
+
|
138
|
+
if response.success?
|
139
|
+
UI.important('status' + response.status)
|
140
|
+
return response
|
141
|
+
else
|
142
|
+
raise (client.class.hostname + url + ' ' + response.status.to_s + ' ' + response.body['message'])
|
143
|
+
end
|
144
|
+
|
137
145
|
|
138
146
|
# Actions::ShAction.run(FastlaneCore::Configuration.create(Actions::ShAction.available_options,
|
139
147
|
# {command:"curl -X POST -H \"Content-Type: application/json\" -d '#{paramsJSON}' http://mobile.geo4.io/bot/releaseBuilder/jobStates"}))
|