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 +4 -4
- data/VERSION +1 -1
- data/lib/buildkite/builder/commands/run.rb +1 -1
- data/lib/buildkite/builder/extensions/steps.rb +1 -1
- data/lib/buildkite/builder/group.rb +8 -6
- data/lib/buildkite/builder.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2591489e3b57711b38926cf558ee362c2c579086b46ff800fccffb8db4598a92
|
4
|
+
data.tar.gz: cc12ee969c8e846008f13eea3ad61de0efa32d8706bda83ce76a3bf7e8b7772f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6901d0afda1b70080615f5937ef7fa17c90023f1141606e4adf8f77b5ac3252da2f656070b22528b8eea2703686fb2e7af30575f6075e2d19e730a4b4c0df9e5
|
7
|
+
data.tar.gz: 39d6c40ec9a8f194997af75eb4776753d3b6904bbd19783e1592f92b260f918ccbda81c764efca332305e1f67073bcf7f060d52931a8738c1a2a7a56ffa5a924
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.8.
|
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
|
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,
|
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
|
-
|
26
|
-
@dsl.
|
27
|
-
|
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
|
data/lib/buildkite/builder.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2022-12-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rainbow
|