embulk-input-travis 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/embulk-input-travis.gemspec +1 -1
- data/lib/embulk/input/travis.rb +26 -17
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01f55cd1db02c2550593ed985180e6d3114e543f6f0baaa277248b74c85e7e10
|
4
|
+
data.tar.gz: 79a66eb49c256aac3f7d185b059f4537f7064d9d99df8717c013e45cffc4192a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5567bd22df5b9ad787aa23da8c3565f88aab8c727b0bd3d80c74faaebb3fd7d04bde91ec44617a2992b7c4690cb1ea8ce309e09a5a1df055543d88ef0463eccf
|
7
|
+
data.tar.gz: b0e0e92edef1a742d053a6c178e4528b98c940ae0659b1c54aa87813f71b5d45bf0dff9cee5bf7a15234e4e3566305ea94ddfd813d610250711c007730cc330c
|
data/CHANGELOG.md
CHANGED
data/embulk-input-travis.gemspec
CHANGED
data/lib/embulk/input/travis.rb
CHANGED
@@ -23,7 +23,8 @@ module Embulk
|
|
23
23
|
Column.new(2, "log", :string),
|
24
24
|
Column.new(3, "started_at", :timestamp),
|
25
25
|
Column.new(4, "build_number", :long),
|
26
|
-
Column.new(5, "build_data", :string)
|
26
|
+
Column.new(5, "build_data", :string),
|
27
|
+
Column.new(6, "commit_data", :string)
|
27
28
|
]
|
28
29
|
|
29
30
|
resume(task, columns, 1, &control)
|
@@ -74,24 +75,32 @@ module Embulk
|
|
74
75
|
next
|
75
76
|
end
|
76
77
|
|
77
|
-
build.job_ids.
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
78
|
+
build.job_ids.each_slice(5) do |job_ids|
|
79
|
+
job_ids.each do |job_id|
|
80
|
+
with_retry do
|
81
|
+
job = client.session.find_one(::Travis::Client::Job, job_id)
|
82
|
+
|
83
|
+
Embulk.logger.info { "embulk-input-travis: Start job_id:[#{job.id}]" }
|
84
|
+
|
85
|
+
page_builder.add([
|
86
|
+
job.id,
|
87
|
+
job.to_h.to_json,
|
88
|
+
job.log.body,
|
89
|
+
job.started_at,
|
90
|
+
build.number.to_i,
|
91
|
+
build.to_h.to_json,
|
92
|
+
build.commit.to_h.to_json
|
93
|
+
])
|
94
|
+
end
|
93
95
|
end
|
96
|
+
|
97
|
+
Embulk.logger.info { "embulk-input-travis: flush" }
|
98
|
+
page_builder.flush
|
99
|
+
repo.session.clear_cache!
|
94
100
|
end
|
101
|
+
|
102
|
+
page_builder.flush
|
103
|
+
repo.session.clear_cache!
|
95
104
|
end
|
96
105
|
|
97
106
|
page_builder.finish
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk-input-travis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: travis
|