fastlane-plugin-trigger_bitrise_build 1.0.0 → 1.1.0
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97a4359c4838b2acbc45f680ca88f1584cb4ec42
|
4
|
+
data.tar.gz: 44d85777102184bc06acab197f5da2471d48e689
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 616b5895987c99e451249de5307dc869ace5bec90eac7657a25b8455250c8c96aa091ec14518b806ef6719bff9717db7c14874ca07fab49e31b4fd77ec49dc0b
|
7
|
+
data.tar.gz: 2ddd63636b714d32bbc5baf2dd593eb1e4e85db98606fefb4948cb5f927ecf5f887696be753939f0feeac75701c8fe665d5b8a37de9c2df9a4d73fe88ee074bd
|
@@ -4,10 +4,22 @@ module Fastlane
|
|
4
4
|
def self.run(params)
|
5
5
|
UI.message("The trigger_bitrise_build plugin is working!")
|
6
6
|
|
7
|
+
# {
|
8
|
+
# "commit_hash": "714304e62b4d",
|
9
|
+
# "commit_message": "Feature/PER-493 Encrypt CoreData database\n\n* Added encrypted SQLite stack for core data, encrypt database by hardcoded passcode\r\n\r\n* CoreData database encryption based on user pin and unique device identifier",
|
10
|
+
# "branch": "feature/PER-493_insecure-storage-of-sensitive-data",
|
11
|
+
# "branch_dest": "master",
|
12
|
+
# "pull_request_id": 33,
|
13
|
+
# "pull_request_repository_url": "git@bitbucket.org:waracle/virtualboardroom-alpine-ios.git"
|
14
|
+
# }
|
15
|
+
|
7
16
|
app_slug = params[:app_slug] ||= ENV['BITRISE_APP_SLUG']
|
8
17
|
api_token = params[:api_token] ||= ENV['BITRISE_API_TOKEN']
|
9
18
|
app_title = params[:app_title] ||= ENV['BITRISE_APP_TITLE']
|
10
19
|
git_branch = params[:git_branch] ||= ENV['BITRISE_GIT_BRANCH']
|
20
|
+
git_branch_dest = params[:git_branch_dest] ||= ENV['BITRISEIO_GIT_BRANCH_DEST']
|
21
|
+
pull_request_id = params[:pull_request_id] ||= ENV['PULL_REQUEST_ID']
|
22
|
+
pull_request_repository_url = params[:pull_request_repository_url]||=ENV['BITRISEIO_PULL_REQUEST_REPOSITORY_URL']
|
11
23
|
# get the commit from either the params, the specific env var or implicitly when the branch/tag is cloned
|
12
24
|
git_commit = params[:git_commit] ||= ENV['BITRISE_GIT_COMMIT']||=ENV['GIT_CLONE_COMMIT_HASH']
|
13
25
|
git_tag = params[:git_tag] ||= ENV['BITRISE_GIT_TAG']
|
@@ -34,7 +46,10 @@ module Fastlane
|
|
34
46
|
workflow_id: workflow_id,
|
35
47
|
tag: git_tag,
|
36
48
|
commit_message: commit_message,
|
37
|
-
environments: parameters
|
49
|
+
environments: parameters,
|
50
|
+
branch_dest: git_branch_dest,
|
51
|
+
pull_request_id: pull_request_id,
|
52
|
+
pull_request_repository_url: pull_request_repository_url
|
38
53
|
},
|
39
54
|
triggered_by: triggered_by
|
40
55
|
}
|
@@ -92,6 +107,12 @@ module Fastlane
|
|
92
107
|
optional: false,
|
93
108
|
type: String),
|
94
109
|
|
110
|
+
FastlaneCore::ConfigItem.new(key: :git_branch_dest,
|
111
|
+
env_name: "BITRISEIO_GIT_BRANCH_DEST",
|
112
|
+
description: "The destination branch of the repo to build",
|
113
|
+
optional: true,
|
114
|
+
type: String),
|
115
|
+
|
95
116
|
FastlaneCore::ConfigItem.new(key: :git_commit,
|
96
117
|
env_name: "BITRISE_GIT_COMMIT",
|
97
118
|
description: "The commit hash of the repo to build",
|
@@ -104,6 +125,18 @@ module Fastlane
|
|
104
125
|
optional: true,
|
105
126
|
type: String),
|
106
127
|
|
128
|
+
FastlaneCore::ConfigItem.new(key: :pull_request_id,
|
129
|
+
env_name: "PULL_REQUEST_ID",
|
130
|
+
description: "The pull request ID to build",
|
131
|
+
optional: true,
|
132
|
+
type: Integer),
|
133
|
+
|
134
|
+
FastlaneCore::ConfigItem.new(key: :pull_request_repository_url,
|
135
|
+
env_name: "BITRISEIO_PULL_REQUEST_REPOSITORY_URL",
|
136
|
+
description: "The pull request repository url to build from",
|
137
|
+
optional: true,
|
138
|
+
type: String),
|
139
|
+
|
107
140
|
FastlaneCore::ConfigItem.new(key: :workflow_id,
|
108
141
|
env_name: "BITRISE_TRIGGERED_WORKFLOW_ID",
|
109
142
|
description: "The Bitrise workflow to use",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-trigger_bitrise_build
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Hammond
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|