buildkite-builder 3.3.0 → 3.3.1

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: 2946cdcde9aa6a6474bb3f9464d77b5ac9831fe1c5f3a27e289017e215f711a4
4
- data.tar.gz: 6cbc69d2ea605f0427577daf28ed0243f56ccb3b12338662c08d377774ac5177
3
+ metadata.gz: ad16f8a66cf5c9c52bbbce15ccbd29589294309739a63f67a8982403f51b9b36
4
+ data.tar.gz: d148df13c7489629bb2d23c772fa309f937cf65ceafd46eb0303d199b4292f0b
5
5
  SHA512:
6
- metadata.gz: 04b63489255060c1237b8c25094b0aba3e99fe08079d23ab13173392e36908bf9db798224b70e5c28dfaccbb9323dfd2c11c8e4446bad0a9fd6fd4d74b44de8a
7
- data.tar.gz: b1685985083035299d690371891f05d16c0dc932b159551f1b1ae23d645c4764d63456f44d29ce72e97251ad38ac6229622ba7795d173f8acc72a1ad09e8756e
6
+ metadata.gz: 7be78bd7cf1891adaf95c557861c6f5b8cc8b16e28ecabae1406eba44526e0e16fc13df245d253f73892dae0324255d2ecb6837643ef1058b18bfdb87801521b
7
+ data.tar.gz: 2ae512dbf1f76794531d5f4ef278fffc061e10d21074d8eb0de7454cc55b2dc50b61c5b30695152283790234a3a9da52ccd4b734067ed7bdc90b7898304feec9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 3.3.1
2
+ * Add support to iterate over subpipelines.
3
+ * Allow build options to be passed to subpipelines.
4
+
1
5
  ## 3.3.0
2
6
  * Remove arguments in sub-pipeline's trigger step setup and use dsl delegation instead.
3
7
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.3.0
1
+ 3.3.1
@@ -18,6 +18,7 @@ module Buildkite
18
18
  attribute :allow_dependency_failure
19
19
  attribute :branches
20
20
  attribute :async
21
+ attribute :build
21
22
 
22
23
  def self.to_sym
23
24
  name.split('::').last.downcase.to_sym
@@ -76,7 +77,8 @@ module Buildkite
76
77
 
77
78
  trigger_step = context.data.steps.add(Pipelines::Steps::Trigger)
78
79
  trigger_step.trigger(name)
79
- trigger_step.build(
80
+
81
+ build_options = {
80
82
  message: '${BUILDKITE_MESSAGE}',
81
83
  commit: '${BUILDKITE_COMMIT}',
82
84
  branch: '${BUILDKITE_BRANCH}',
@@ -86,8 +88,10 @@ module Buildkite
86
88
  BUILDKITE_PULL_REQUEST_REPO: '${BUILDKITE_PULL_REQUEST_REPO}',
87
89
  BKB_SUBPIPELINE_FILE: sub_pipeline.pipeline_yml
88
90
  }
89
- )
91
+ }
92
+ build_options.merge!(sub_pipeline.build) if sub_pipeline.build
90
93
 
94
+ trigger_step.build(build_options)
91
95
  trigger_step.key(sub_pipeline.key || "subpipeline_#{name}_#{context.data.pipelines.count}")
92
96
  trigger_step.label(sub_pipeline.label || name.capitalize)
93
97
  trigger_step.async(sub_pipeline.async || false)
@@ -8,6 +8,7 @@ module Buildkite
8
8
  attr_reader :pipelines
9
9
 
10
10
  def_delegator :@pipelines, :count
11
+ def_delegator :@pipelines, :each
11
12
 
12
13
  def initialize(artifacts)
13
14
  @artifacts = artifacts
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildkite-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ngan Pham
8
8
  - Andrew Lee
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-06-15 00:00:00.000000000 Z
12
+ date: 2022-06-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rainbow
@@ -177,7 +177,7 @@ metadata:
177
177
  source_code_uri: https://github.com/Gusto/buildkite-builder
178
178
  changelog_uri: https://github.com/Gusto/buildkite-builder/blob/master/CHANGELOG.md
179
179
  bug_tracker_uri: https://github.com/Gusto/buildkite-builder/issues
180
- post_install_message:
180
+ post_install_message:
181
181
  rdoc_options: []
182
182
  require_paths:
183
183
  - lib
@@ -192,8 +192,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  - !ruby/object:Gem::Version
193
193
  version: '0'
194
194
  requirements: []
195
- rubygems_version: 3.2.32
196
- signing_key:
195
+ rubygems_version: 3.0.3.1
196
+ signing_key:
197
197
  specification_version: 4
198
198
  summary: A gem for programmatically creating Buildkite pipelines.
199
199
  test_files: []