buildkite-builder 3.8.1 → 3.8.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: e0e8b5cc37e9923412be2b266a5e53d49291215d5c72deb9a4e71386557ec63c
4
- data.tar.gz: f31cb6a1afca390b10a4867aada59b206b33581bed82ebe591b3b6e6a83c828c
3
+ metadata.gz: 2591489e3b57711b38926cf558ee362c2c579086b46ff800fccffb8db4598a92
4
+ data.tar.gz: cc12ee969c8e846008f13eea3ad61de0efa32d8706bda83ce76a3bf7e8b7772f
5
5
  SHA512:
6
- metadata.gz: b7f31586bca0d90aae646cba983f9d80cd05baa04cc64aefce9068766310a84a1bc3f47f59b505c1c7a8ad5981041941b75b597cb8bb13f0a1a3fbe3ac0e4f4f
7
- data.tar.gz: 3a66afa04881cb65068a13fc2ba116770f396f3df949a45d6a0c46077fb909ea3f027180cbd16b3b973dcdcdf92dbaf05d0916875b6d81a8e2d0dbac9131aa77
6
+ metadata.gz: 6901d0afda1b70080615f5937ef7fa17c90023f1141606e4adf8f77b5ac3252da2f656070b22528b8eea2703686fb2e7af30575f6075e2d19e730a4b4c0df9e5
7
+ data.tar.gz: 39d6c40ec9a8f194997af75eb4776753d3b6904bbd19783e1592f92b260f918ccbda81c764efca332305e1f67073bcf7f060d52931a8738c1a2a7a56ffa5a924
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.8.1
1
+ 3.8.3
@@ -15,7 +15,7 @@ module Buildkite
15
15
 
16
16
  # This entrypoint is for running on CI. It expects certain environment
17
17
  # variables to be set. It also uploads the pipeline to Buildkite.
18
- log.info "+++ 🧰 #{'Buildkite Builder'.color(:springgreen)} ─ #{relative_pipeline_path.to_s.yellow}"
18
+ log.info "+++ 🧰 #{'Buildkite Builder'.color(:springgreen)} v#{Buildkite::Builder.version} ─ #{relative_pipeline_path.to_s.yellow}"
19
19
 
20
20
  if Buildkite::Pipelines::Command.meta_data(:exists, Builder::META_DATA.fetch(:job))
21
21
  log.info 'Pipeline already uploaded'.color(:dimgray)
@@ -18,7 +18,7 @@ module Buildkite
18
18
  label = [emoji, label].compact.join(' ')
19
19
  end
20
20
 
21
- context.data.steps.push(Buildkite::Builder::Group.new(label, context.data.steps, &block))
21
+ context.data.steps.push(Buildkite::Builder::Group.new(label, context, &block))
22
22
  end
23
23
 
24
24
  def plugin(name, uri, default_attributes = {})
@@ -13,18 +13,20 @@ module Buildkite
13
13
  name.split('::').last.downcase.to_sym
14
14
  end
15
15
 
16
- def initialize(label, steps, &block)
16
+ def initialize(label, context, &block)
17
17
  @label = label
18
18
  @data = Data.new
19
19
  @data.steps = StepCollection.new(
20
- steps.templates,
21
- steps.plugins
20
+ context.data.steps.templates,
21
+ context.data.steps.plugins
22
22
  )
23
23
  @data.notify = []
24
24
 
25
- @dsl = Dsl.new(self)
26
- @dsl.extend(Extensions::Steps)
27
- @dsl.extend(Extensions::Notify)
25
+ # Use `clone` to copy over dsl's extended extensions
26
+ @dsl = context.dsl.clone
27
+ # Override dsl context to current group
28
+ @dsl.instance_variable_set(:@context, self)
29
+
28
30
  instance_eval(&block) if block_given?
29
31
  self
30
32
  end
@@ -81,8 +81,6 @@ module Buildkite
81
81
 
82
82
  private
83
83
 
84
- attr_reader :extensions
85
-
86
84
  def upload_artifacts
87
85
  return if artifacts.empty?
88
86
 
@@ -35,6 +35,10 @@ module Buildkite
35
35
  @root ||= find_buildkite_directory(start_path)
36
36
  end
37
37
 
38
+ def version
39
+ @version ||= File.read(File.expand_path('../../VERSION', __dir__)).strip
40
+ end
41
+
38
42
  def template(&block)
39
43
  Definition::Template.new(&block) if block_given?
40
44
  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: 3.8.1
4
+ version: 3.8.3
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: 2022-11-23 00:00:00.000000000 Z
12
+ date: 2022-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rainbow