gct 0.4.6 → 0.5.3

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: a862c669dd00f8f75eac90ea9438a8774dd6c5fb190de25cc34024c028bbf6c3
4
- data.tar.gz: da2c3466907b592e4bc02775b5b07ca2e69b64ad0122031b99fa00d49c212ae7
3
+ metadata.gz: 5c5c117dbfd9e96df0f31a971dda44635658c33d6acb234829862932ed11377c
4
+ data.tar.gz: 4c23d03ead1cb929deb885ab802a83531afb0e8f6dcb3d1ffccfc1d433544496
5
5
  SHA512:
6
- metadata.gz: 8c00440bc3426b6a629353a850bd652cb7a2d4d61efcbe4c1e81f45903606aa50c3c3bc5ea8983fff825a78de7c7d2a0231277aeedd85d526ce0ff7a63846f4c
7
- data.tar.gz: c35c3dee9f8c30d38a334937eebc6203effa5cf38d6ff675e2876e04bd491fc64f4df3f38e1e0808b2d8707bc7cfd473696a7c5bfc8d974a0b333824a6422f36
6
+ metadata.gz: f407f15fa81efaf3233f67b6021551b0ebe62590d086e0f079ca7d2932815529be4f02ed258e126d44241bc9b1cb8a00eb3617bd0f9dd2082c50276ea14e6a99
7
+ data.tar.gz: a1a85a16d3d6c6e18d2a45e2c5fba28e0981102539dbd6ff9b458572765d0b3ceff4cffde1e72088ecdb54418ed7a27018c1c64d82a50e82386925187b59b585
@@ -92,6 +92,7 @@ module Gct
92
92
  end
93
93
 
94
94
  def auto_add_tag(tag)
95
+ puts "current tag = #{tag}"
95
96
  tag_points = tag.to_s.split('.')
96
97
  index = tag_points.length - 1
97
98
  need_add_point = tag_points[index].to_i + 1
@@ -249,7 +249,7 @@ module Gct
249
249
  db = Database::Data.new
250
250
  # 查询优先级最高的为完成打tag的数据
251
251
  where_statement = "and is_pre = " + (@pre ? "1" : "0")
252
- sql = "select * from tag where priority = (select MAX(priority) from tag where project_version = '#{@version}' and tag_status != '#{SpecPublishStatus::SUCCESS}' #{where_statement})"
252
+ sql = "select * from tag where priority = (select MAX(priority) from tag) and project_version = '#{@version}' and tag_status != '#{SpecPublishStatus::SUCCESS}' #{where_statement}"
253
253
  result = db.query(sql)
254
254
  vals = ""
255
255
  ins = ""
@@ -258,8 +258,11 @@ module Gct
258
258
  if row["tag_status"].eql?(SpecPublishStatus::WAITING) || row["tag_status"].eql?(SpecPublishStatus::CANCELED) || row["tag_status"].eql?(SpecPublishStatus::FAILED)
259
259
  status = SpecPublishStatus::PENDING
260
260
  name = row["pod_name"]
261
+ puts "pod name is " + name
261
262
  vals.concat("when pod_name = '#{name}' then '#{status}' ")
263
+ puts vals
262
264
  ins.concat("'#{name}',")
265
+ puts ins
263
266
  system "gct update dependency #{name} tag_status #{status}"
264
267
  skip_tag = ""
265
268
  if row["is_tag"].to_i == 1
@@ -51,11 +51,9 @@ module Gct
51
51
  end
52
52
 
53
53
  def skip_tag_method
54
- if !@update_ci
55
- isEmptyMR = mr_to_master
56
- if !isEmptyMR
57
- accept_merge_request
58
- end
54
+ isEmptyMR = mr_to_master
55
+ if !isEmptyMR
56
+ accept_merge_request
59
57
  end
60
58
  remove_and_create_tag
61
59
  end
@@ -2,5 +2,5 @@ module Gct
2
2
  # freeze 冻结对象,将对象变成一个常量
3
3
  # unless 右边的代码块成立,才会运行左边的代码块
4
4
  # defined? 是用来判断本地变量是否存在,也可用来判断是否存在方法
5
- VERSION = "0.4.6".freeze unless defined? Gct::VERSION
5
+ VERSION = "0.5.3".freeze unless defined? Gct::VERSION
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.6
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - jieming
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-21 00:00:00.000000000 Z
11
+ date: 2020-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler