fastlane-plugin-upload_dsym 0.1.4 → 0.1.5

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
  SHA256:
3
- metadata.gz: d7b2938aaaafa99a07269d0f0cb6a59b242d0fec2e4e99fffd37cc87d7c256e2
4
- data.tar.gz: d8b0ab5b1cb141699e42e79c0460a3ec04b3a0f63dd9aba58ad6c6c8f8de58ba
3
+ metadata.gz: 9fd29bdd821b06a4ab0c431285fec448cca04eb4132086bf71a5e879771f9d29
4
+ data.tar.gz: ed5d251c01968d8abf35363cfd62b5848bfe0397b2df54089927fce096289391
5
5
  SHA512:
6
- metadata.gz: 5128bc640aea2eb4308c26bdfb79ffa4fa4765d3ebe6657e6b4760561755492c8a4e57db32fef6c0cd4ae6ef9d818494911003ede2a3a461c8d7facc47b1329d
7
- data.tar.gz: d2ede2ec04590eb98f3cc20c1ea91ddf7ca1bd4432cd2cad7d7960ade4c3ddfadaf9feb4e77f2ea341551692b7e9049617f7691eed42bce7fdc68274a9cf6d73
6
+ metadata.gz: 1242d7d7a82b1251e423e7a698e628a10215f080c4f795e00d565da839edbafd4f5d8bb4f633bfbc82386f27eb800bfeb54d53df105f69c45f21ccb4c454fa2f
7
+ data.tar.gz: 2920beaff2de1dd9671cfc71b60f229214d169ccb4b8102b2414d094afb0b2ee4864510a75400d6a0a21119454f701c9c3cb0b3a5876d60683de56f9f4c1e57a
@@ -17,9 +17,9 @@ module Fastlane
17
17
 
18
18
  def self.upload_specity(params)
19
19
  UI.message("[UploadDsymAction] [upload_specity] 🔵running ...... ")
20
- host = params[:host]
20
+ host = params[:host]
21
21
  dsym_zip_file = params[:dsym_zip_file]
22
- kvs = params[:kvs]
22
+ kvs = params[:kvs]
23
23
 
24
24
  UI.user_error!("❌host not pass") unless host
25
25
  UI.user_error!("❌dsym_zip_file not pass") unless dsym_zip_file
@@ -74,10 +74,23 @@ module Fastlane
74
74
  UI.important("[UploadDsymAction] [upload_bugly] version: #{version}")
75
75
  UI.important("[UploadDsymAction] [upload_bugly] package: #{package}")
76
76
 
77
+
77
78
  dsym_files.each do |df|
78
- cmd = "java -jar #{buglytoolpath} -i #{df} -u -id #{buglyid} -key #{buglykey} -package #{package} -version #{version}"
79
- # UI.message(cmd)
80
- Actions.sh(cmd)
79
+ times = 3
80
+ tries = 1
81
+ begin
82
+ cmd = "java -jar #{buglytoolpath} -i #{df} -u -id #{buglyid} -key #{buglykey} -package #{package} -version #{version}"
83
+ Actions.sh(cmd)
84
+ rescue => ex
85
+ tries += 1
86
+ retry if tries <= times
87
+
88
+ UI.error("❌失败超过 #{times} 次:")
89
+ UI.error(ex.message)
90
+ UI.error(ex.inspect)
91
+ UI.error(ex.backtrace.join("\n"))
92
+ UI.user_error!("❌ force to crash!")
93
+ end
81
94
  end
82
95
 
83
96
  UI.success("[UploadDsymAction] [upload_bugly] 🎉success upload to upload_bugly")
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module UploadDsym
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-upload_dsym
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - xiongzenghui
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-05 00:00:00.000000000 Z
11
+ date: 2020-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client