buildkite-builder 4.1.2 → 4.2.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: 1a02f80263e1373648688276099006c4d2c6870803bb82196cdce5be97d89ad5
4
- data.tar.gz: bee2180eac619b4bc4931434f12e02d199fd95c82bcf43e9798b96d01f76f263
3
+ metadata.gz: 0de0ca71b799a2ae9a8e7c58a853ba4b77fef220b333f5f4d1d790e79c93af3e
4
+ data.tar.gz: 633bd86958bc6155e30be2fcf62f1ca12b6c6d9c2eb96a5698f2dadaa020b036
5
5
  SHA512:
6
- metadata.gz: c8f8028dbc2b311ed71a5dd287d805e8cf417832495172405e2d5556f6535163ab5400a8506c7c9ecd0a32099a0cf7283c32f854f86781c1615284e3032c9319
7
- data.tar.gz: eda46a592c6f8630e177f539369c3bbf1d619429b32407db7fbf461420592ef9263982dbe4ed4e6f0203baeac8a5a06362aa493e5a6b26680a52f05c904f73f2
6
+ metadata.gz: 37ad92f7df9fa06f81423968c4c040cb629a39a7bf00cd48fc53bce1d8439f5c551cdbe80c9efba92954592dad696a957d144c4da26a9ba8b2c1747528672ff7
7
+ data.tar.gz: e63a9f02c24f60f27e2bb23d71ee24543349f2a860810b4fb7e1a21e3b615fd96054acf72f04902632bccbd02274dc58cf5d225b5cac538693ed6d7439b7bced
data/CHANGELOG.md CHANGED
@@ -1,3 +1,33 @@
1
+ ### 4.2.0
2
+ * Add shared global templates
3
+
4
+ ### 4.1.2
5
+ * Raise error with stderr/stdout message when `buildkite-agent` command failed while using bang commands (`artifact!`, `annotate!`, `pipeline!`, and `meta_data!`)
6
+ * Add `signal_reason` as an automatic retry option
7
+
8
+ ### 4.1.1
9
+ * Fix `PluginManager`'s error message when plugin was not registered
10
+
11
+ ### 4.1.0
12
+ * Remove `skip` step since it's only mimicing `command` step with a skip.
13
+
14
+ ### 4.0.0
15
+ * Remove `subpipeline` since it's not a Buildkite standard.
16
+ * Refactor template handling
17
+ * Simplify `group` step implementation
18
+
19
+ ### 3.9.0
20
+ * Create a `Plugins` extension to take care named plugins from the plugin manager.
21
+
22
+ ### 3.8.1...3.8.3
23
+ * Expose extension manager to be accessible in dsl
24
+ * Removes an extra definition of `attr_reader :extensions` in pipeline
25
+ * Allow `group` steps to be able to use extension's dsl methods
26
+ * Show buildkite builder version at the beginning of the command
27
+
28
+ ### 3.8.0
29
+ * Extensions can now take block as argument [example](https://github.com/Gusto/buildkite-builder/blob/v3.8.0/.buildkite/pipelines/showcase/pipeline.rb#L6-L13)
30
+
1
31
  ## 3.6.0
2
32
  * `Buildkite::Pipelines::Command#run` now uses `Open3.capture3` to run system commands, and accepts an optional arg `capture`. When `capture` is true, it returns the stdout of the command. `capture` is true for the meta_data subcommands `get` and `keys` and for the artifact subcommands `shasum` and `search`.
3
33
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.1.2
1
+ 4.2.0
@@ -9,16 +9,27 @@ module Buildkite
9
9
  TEMPLATES_PATH = Pathname.new('templates').freeze
10
10
 
11
11
  def load
12
- return unless templates_path.directory?
12
+ load_from_path(global_path)
13
+ load_from_path(pipeline_path)
14
+ end
15
+
16
+ private
17
+
18
+ def load_from_path(path)
19
+ return unless path.directory?
13
20
 
14
- templates_path.children.sort.each do |file|
21
+ path.children.sort.each do |file|
15
22
  add(file.basename('.rb'), load_definition(file, Definition::Template))
16
23
  end
17
24
  end
18
25
 
19
- def templates_path
26
+ def pipeline_path
20
27
  root.join(TEMPLATES_PATH)
21
28
  end
29
+
30
+ def global_path
31
+ buildkite_path.join(TEMPLATES_PATH)
32
+ end
22
33
  end
23
34
  end
24
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buildkite-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.2
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ngan Pham
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2023-04-11 00:00:00.000000000 Z
12
+ date: 2023-06-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rainbow
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  - !ruby/object:Gem::Version
175
175
  version: '0'
176
176
  requirements: []
177
- rubygems_version: 3.3.13
177
+ rubygems_version: 3.4.10
178
178
  signing_key:
179
179
  specification_version: 4
180
180
  summary: A gem for programmatically creating Buildkite pipelines.