fastlane-plugin-circle_ci 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane/plugin/circle_ci/actions/get_circle_ci_artifacts.rb +1 -1
- data/lib/fastlane/plugin/circle_ci/actions/get_circle_ci_build_status.rb +1 -1
- data/lib/fastlane/plugin/circle_ci/actions/trigger_circle_ci_job.rb +1 -1
- data/lib/fastlane/plugin/circle_ci/helper/circle_ci_helper.rb +5 -5
- data/lib/fastlane/plugin/circle_ci/version.rb +1 -1
- 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: 310a5f9bf0095968820fde6642c4112fc1d6bc449dc9e38b0b408abcd3320613
|
4
|
+
data.tar.gz: 88089e5f6e51984ae7b8d13545e23bdc5bbe1bf92dc2c550f6d32b90faadfb64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94b9b68f1e9bf5535b08d116d483f07d622c3af2951592f7396432c86bcbe0a331f3cc15d346da6c89058744884d8a79f92bb4348795169eb8063718735c99cf
|
7
|
+
data.tar.gz: 2d35a6e23b7f2f63bb3c6a3e07530e68c705c68c914a0c703d9742d61d83594d1426e3baec1fcdd4666b1a9e3a04e67ffd270528d0886990bfcf2ce4c2c85100
|
@@ -19,7 +19,7 @@ module Fastlane
|
|
19
19
|
api_url = "api/v1.1/project/#{vcs}/#{name}/#{project}/#{build}/artifacts"
|
20
20
|
curl_command = "curl -H 'Content-Type: application/json' -H 'Circle-Token: #{token}' -s #{uri}/#{api_url}"
|
21
21
|
|
22
|
-
result =
|
22
|
+
result = Helper::CircleCiHelper.execute(curl_command)
|
23
23
|
|
24
24
|
Actions.lane_context[SharedValues::GET_CIRCLE_CI_ARTIFACTS_RESULT] = result
|
25
25
|
result
|
@@ -19,7 +19,7 @@ module Fastlane
|
|
19
19
|
api_url = "api/v1.1/project/#{vcs}/#{name}/#{project}/#{build}"
|
20
20
|
curl_command = "curl -H 'Content-Type: application/json' -H 'Circle-Token: #{token}' -s #{uri}/#{api_url}"
|
21
21
|
|
22
|
-
result =
|
22
|
+
result = Helper::CircleCiHelper.execute(curl_command)
|
23
23
|
|
24
24
|
Actions.lane_context[SharedValues::GET_CIRCLE_CI_BUILD_STATUS_RESULT] = result
|
25
25
|
result
|
@@ -25,7 +25,7 @@ module Fastlane
|
|
25
25
|
api_url = "api/v1.1/project/#{vcs}/#{name}/#{project}/tree/#{branch}"
|
26
26
|
curl_command = "curl -X POST -u #{token}: -H 'Content-Type: application/json' -d '{\"build_parameters\": #{parameters}}' -s #{uri}/#{api_url}"
|
27
27
|
|
28
|
-
result =
|
28
|
+
result = Helper::CircleCiHelper.execute(curl_command)
|
29
29
|
|
30
30
|
Actions.lane_context[SharedValues::TRIGGER_CIRCLE_CI_JOB_RESULT] = result
|
31
31
|
result
|
@@ -5,11 +5,11 @@ module Fastlane
|
|
5
5
|
|
6
6
|
module Helper
|
7
7
|
class CircleCiHelper
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
def self.execute(curl_command)
|
9
|
+
response = Fastlane::Actions::sh("#{curl_command}", log: false)
|
10
|
+
|
11
|
+
require 'json'
|
12
|
+
JSON.parse(response) || {}
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-circle_ci
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manish Rathi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|