fastlane-plugin-bitrise_automation 0.2.0 → 0.2.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d0d9adad859b0ea78e7de47ec6f893521a0a533bc5ea045cb9e5e52d77d79d0
|
4
|
+
data.tar.gz: c5d20b80cd7cbe0d001cd75bda3b9f1f1b05bede24d307a4cb4fe66857026a07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4630d2f61311d180f33b931b6eb5e6034b600ecdad92bb1e4d266abeaec775884d2f476b659f49488d121866dca198d01528cbb573c8ec5b892a76d0be5d8e92
|
7
|
+
data.tar.gz: a9097cbd37cd73ff15590ac57964c658b5edfad237ca33dda9c4c8a9177fb7d55a3ee5aaffce6ee9d1f0f08007832119960229b96dca81cd0e8d443314460f02
|
data/README.md
CHANGED
@@ -75,6 +75,7 @@ The returned value is a hash containing the information about the build status.
|
|
75
75
|
| `status` | The status of the build: not finished (0), successful (1), failed (2), aborted with failure (3), aborted with success (4) |
|
76
76
|
| `status_text` | The status text |
|
77
77
|
| `is_on_hold` | Indicates whether the build has started yet (true: the build hasn't started) |
|
78
|
+
| `abort_reason` | If the build has been aborted, indicates the reason why |
|
78
79
|
|
79
80
|
### bitrise_build_artifacts
|
80
81
|
Use this action to retrieve information about the artifacts of a build or to automatically download them from Bitrise.
|
@@ -24,6 +24,7 @@ module Fastlane
|
|
24
24
|
build_infos["is_on_hold"] = json_response["is_on_hold"]
|
25
25
|
build_infos["status"] = json_response["status"]
|
26
26
|
build_infos["status_text"] = json_response["status_text"]
|
27
|
+
build_infos["abort_reason"] = json_response["abort_reason"]
|
27
28
|
build_infos
|
28
29
|
end
|
29
30
|
|
@@ -5,7 +5,7 @@ module Fastlane
|
|
5
5
|
module Actions
|
6
6
|
class TriggerBitriseWorkflowAction < Action
|
7
7
|
def self.run(params)
|
8
|
-
UI.
|
8
|
+
UI.message("Requesting new Bitrise.io build for workflow '#{params[:workflow]}'...")
|
9
9
|
|
10
10
|
response = Helper::BitriseRequestHelper.post(params, 'builds', {
|
11
11
|
hook_info: {
|
@@ -24,7 +24,7 @@ module Fastlane
|
|
24
24
|
FastlaneCore::PrintTable.print_values(config: json_response,
|
25
25
|
title: "Bitrise API response")
|
26
26
|
else
|
27
|
-
UI.crash!("Error requesting new build on Bitrise.io. Status code: #{response.code}. #{response}")
|
27
|
+
UI.crash!("Error requesting new build on Bitrise.io. Status code: #{response.code}. #{response.body}")
|
28
28
|
end
|
29
29
|
|
30
30
|
build_infos = {}
|
@@ -35,14 +35,20 @@ module Fastlane
|
|
35
35
|
|
36
36
|
if params[:wait_for_build]
|
37
37
|
build_status = wait_until_build_completion(params, build_infos["build_slug"])
|
38
|
+
|
38
39
|
if params[:download_artifacts]
|
39
40
|
BitriseBuildArtifactsAction.get_artifacts(params, build_infos["build_slug"])
|
40
41
|
end
|
42
|
+
|
43
|
+
build_infos["status"] = build_status["status_text"]
|
41
44
|
if build_status["status"] == 1
|
42
45
|
UI.success("Build has finished successfully on Bitrise!")
|
43
|
-
build_infos["status"] = build_status["status_text"]
|
44
46
|
elsif build_status["status"] == 2
|
45
47
|
UI.build_failure!("Build has FAILED on Bitrise. Check more details at #{build_infos['build_url']}.")
|
48
|
+
elsif build_status["status"] == 3 || build_status["status"] == 4
|
49
|
+
UI.build_failure!("Build has been ABORTED on Bitrise. Abort reason: '#{build_status['abort_reason']}'. Check more details at #{build_infos['build_url']}.")
|
50
|
+
else
|
51
|
+
UI.build_failure!("Build has ended with unknown status on Bitrise: #{build_status}. Check more details at #{build_infos['build_url']}.")
|
46
52
|
end
|
47
53
|
end
|
48
54
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-bitrise_automation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mario Cecchi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|