buildkite-builder 3.8.2 → 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: 1e65dcfa8d56f8779fcea38cd8781936c81a345030b0d42beb8a9b3107df1d3d
4
- data.tar.gz: 89ba3c3f054d3147eb171a0adeae6b2e8f33386e1e07293177d1e6f1d8a9d305
3
+ metadata.gz: 2591489e3b57711b38926cf558ee362c2c579086b46ff800fccffb8db4598a92
4
+ data.tar.gz: cc12ee969c8e846008f13eea3ad61de0efa32d8706bda83ce76a3bf7e8b7772f
5
5
  SHA512:
6
- metadata.gz: e255c6d59f6eeac2d7d98333302e4ad7b9bd9142441f9c8497c2cf81176dae920deba573d38a83dc5e4bcca15205689924afe38822ceb8e82c35ee429e9efc39
7
- data.tar.gz: 3122928b318900c555bbca30fca1e14bf0a0f5e559942eb1d8bbcac3f44830d3f9ed64e99b44add9d94e76aa0b834472d894b6398b414ea4da68e5f21631d412
6
+ metadata.gz: 6901d0afda1b70080615f5937ef7fa17c90023f1141606e4adf8f77b5ac3252da2f656070b22528b8eea2703686fb2e7af30575f6075e2d19e730a4b4c0df9e5
7
+ data.tar.gz: 39d6c40ec9a8f194997af75eb4776753d3b6904bbd19783e1592f92b260f918ccbda81c764efca332305e1f67073bcf7f060d52931a8738c1a2a7a56ffa5a924
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.8.2
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
@@ -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.2
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