embulk-input-buildkite 0.2.0 → 0.3.0

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: aa5f2851b3dc99250b2a9e0e10daa6731343d90d6e520f24b3cfe963cee4d503
4
- data.tar.gz: f22bacd31377fcaa1d7f50214d33ee93ebdd7b4421f4645cdabf704faf33ec0e
3
+ metadata.gz: 8181f9bd9a42836709a5deb133f20a93d4465e1087eaaa2701f77af0f9c30d86
4
+ data.tar.gz: 4dbcd67665f3659150e92b1ea04adb42df2bbff9d9494b713e3dec8f4e96b388
5
5
  SHA512:
6
- metadata.gz: 86715fafd7fd431ec88d9733f0558cbccfb59fa463913c4a30e4efc9cd52f3a1390f63ada0b21e61aec16d453862dc8725448ece45f11c43e16a0dea2045b483
7
- data.tar.gz: 2c84275469fb362f9c982192ba5bf5c92acb5aac00ac3e5c70b6b95d306cdd4b64f6b7068eb63a4d1d8e30c9653274f3a43c4cbf97337d5ba1880936e2dbc78f
6
+ metadata.gz: 58ecb609e666d22b57fe8f4197cc0a4cb6a3fbc782c4e88dd97bccbe342e771cf1731a644d69a7fb81bfdb4b73fb6b531576a5fd2716991a17dc24a6a3754fdf
7
+ data.tar.gz: 3375bf15b396417cd9890505de0829eee94317ebf67c890243e19f96130107d43ec9d5b4d5c4b76ec61d5a0643f7caeb7c5bcaa2f51afda6ec7fce7ce41b53e0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.3.0
2
+
3
+ - Add artifacts
4
+ - Now log is raw response, not :output
5
+
1
6
  # 0.2.0
2
7
 
3
8
  - Update dependency
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "embulk-input-buildkite"
4
- spec.version = "0.2.0"
4
+ spec.version = "0.3.0"
5
5
  spec.authors = ["Fumiaki MATSUSHIMA"]
6
6
  spec.summary = "Buildkite input plugin for Embulk"
7
7
  spec.description = "Loads records from Buildkite."
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.test_files = spec.files.grep(%r{^(test|spec)/})
14
14
  spec.require_paths = ["lib"]
15
15
 
16
- spec.add_dependency 'unofficial_buildkite_client', ['0.3.0']
16
+ spec.add_dependency 'unofficial_buildkite_client', ['0.4.0']
17
17
  spec.add_development_dependency 'bundler', ['>= 1.10.6']
18
18
  spec.add_development_dependency 'rake', ['>= 10.0']
19
19
  spec.add_development_dependency 'pry'
@@ -29,9 +29,10 @@ module Embulk
29
29
  Column.new(0, "id", :long),
30
30
  Column.new(1, "data", :string),
31
31
  Column.new(2, "log", :string),
32
- Column.new(3, "started_at", :timestamp),
33
- Column.new(4, "build_number", :long),
34
- Column.new(5, "build_data", :string),
32
+ Column.new(3, "artifacts", :string),
33
+ Column.new(4, "started_at", :timestamp),
34
+ Column.new(5, "build_number", :long),
35
+ Column.new(6, "build_data", :string),
35
36
  ]
36
37
 
37
38
  resume(task, columns, 1, &control)
@@ -65,12 +66,17 @@ module Embulk
65
66
  build = client.fetch_build(number: build_num)
66
67
  build[:jobs].each do |job|
67
68
  logger.info("Start Start job_id:[#{job[:id]}]")
68
- log = client.fetch_log(build_number: job[:build_number], job_id: job[:id])[:output]
69
+ log = client.fetch_log(build_number: job[:build_number], job_id: job[:id])
70
+ artifacts = client.fetch_artifacts(build_number: job[:build_number], job_id: job[:id])
71
+ artifacts.each do |artifact|
72
+ artifact.merge!(body: client.fetch_artifact(build_number: job[:build_number], job_id: job[:id], artifact_id: artifact[:id]))
73
+ end
69
74
 
70
75
  page_builder.add([
71
76
  job[:id],
72
77
  job.to_json,
73
- log,
78
+ log.to_json,
79
+ artifacts.to_json,
74
80
  job[:started_at],
75
81
  job[:build_number],
76
82
  build.to_json,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-buildkite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fumiaki MATSUSHIMA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-04 00:00:00.000000000 Z
11
+ date: 2019-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unofficial_buildkite_client
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.3.0
19
+ version: 0.4.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.3.0
26
+ version: 0.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement