buildkite-builder 1.0.0.beta.1 → 1.0.0.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/buildkite/builder.rb +1 -1
- data/lib/buildkite/pipelines/helpers/soft_fail.rb +17 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c8f87cd12b82cdfba170b75d353b119873c5ca8cb646424fe7fbcf3f544618a
|
4
|
+
data.tar.gz: 4ea661f51e29cea2310424aa09837d204b6fe7712768fba59ea52f1ffba61f44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32237eff23a7ac011378218ef43603799123f26ecee7066c7bf89a4776b402d2b2e797ad0c7afe0d5390471abca1e0ce2b803bea2535a8e235e88650b8d19643
|
7
|
+
data.tar.gz: 678b1f9dd7d47020e7c2e3aeddd9e419a6aaba8e5a405eb4333d28834aebc558612f5b93bb4f660368c7374755b76daffb5065e9940af710cb6b2ece0095f1e2
|
data/Gemfile.lock
CHANGED
data/lib/buildkite/builder.rb
CHANGED
@@ -4,6 +4,23 @@ module Buildkite
|
|
4
4
|
module Pipelines
|
5
5
|
module Helpers
|
6
6
|
module SoftFail
|
7
|
+
def soft_fail(*value)
|
8
|
+
# soft_fail can be an array of exit_statuses or true
|
9
|
+
# https://buildkite.com/docs/pipelines/command-step#soft-fail-attributes
|
10
|
+
|
11
|
+
if value.first == true
|
12
|
+
current = get('soft_fail')
|
13
|
+
|
14
|
+
if current.is_a?(Array)
|
15
|
+
raise ArgumentError, "Cannot set soft_fail to true when it's already an array.\nsoft_fail: #{current}"
|
16
|
+
else
|
17
|
+
set('soft_fail', true)
|
18
|
+
end
|
19
|
+
else
|
20
|
+
super
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
7
24
|
def soft_fail_on_status(*statuses)
|
8
25
|
statuses.each do |status|
|
9
26
|
soft_fail(exit_status: status)
|
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: 1.0.0.beta.
|
4
|
+
version: 1.0.0.beta.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ngan Pham
|
8
8
|
- Andrew Lee
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-11-
|
12
|
+
date: 2020-11-24 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Write a longer description or delete this line.
|
15
15
|
email:
|
@@ -104,7 +104,7 @@ metadata:
|
|
104
104
|
source_code_uri: https://github.com/Gusto/buildkite-builder
|
105
105
|
changelog_uri: https://github.com/Gusto/buildkite-builder/blob/master/CHANGELOG.md
|
106
106
|
bug_tracker_uri: https://github.com/Gusto/buildkite-builder/issues
|
107
|
-
post_install_message:
|
107
|
+
post_install_message:
|
108
108
|
rdoc_options: []
|
109
109
|
require_paths:
|
110
110
|
- lib
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: 1.3.1
|
121
121
|
requirements: []
|
122
122
|
rubygems_version: 3.1.4
|
123
|
-
signing_key:
|
123
|
+
signing_key:
|
124
124
|
specification_version: 4
|
125
125
|
summary: Write a short summary, because RubyGems requires one.
|
126
126
|
test_files: []
|