Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
FuryLion Fastlane plugin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vadim Vlasov
FuryLion Fastlane plugin
Commits
bcc50713
Commit
bcc50713
authored
Sep 03, 2024
by
Vadim Vlasov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added branch to appgate_upload
parent
f0a2fb48
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
2 deletions
+18
-2
lib/fastlane/plugin/furylion/actions/appgate_upload.rb
lib/fastlane/plugin/furylion/actions/appgate_upload.rb
+17
-1
lib/fastlane/plugin/furylion/version.rb
lib/fastlane/plugin/furylion/version.rb
+1
-1
No files found.
lib/fastlane/plugin/furylion/actions/appgate_upload.rb
View file @
bcc50713
...
...
@@ -4,7 +4,9 @@ module Fastlane
def
self
.
run
(
params
)
app_id
=
params
[
:app_id
]
file_path
=
params
[
:file_path
]
branch
=
params
[
:branch
]
api_key
=
"bearer "
+
params
[
:api_key
]
include_branch
=
params
[
:include_branch
]
url
=
"https://apps.furylion.net/api/app/
#{
app_id
}
/upload"
...
...
@@ -15,7 +17,10 @@ module Fastlane
faraday
.
adapter
Faraday
.
default_adapter
end
payload
=
{
file:
Faraday
::
UploadIO
.
new
(
file_path
,
'application/octet-stream'
)
}
payload
=
{
file:
Faraday
::
UploadIO
.
new
(
file_path
,
'application/octet-stream'
)
}
payload
[
:branch
]
=
branch
if
include_branch
response
=
conn
.
post
do
|
req
|
req
.
headers
[
'Authorization'
]
=
api_key
...
...
@@ -55,6 +60,17 @@ module Fastlane
verify_block:
proc
do
|
value
|
UI
.
user_error!
(
"Could not find file at path '
#{
value
}
'"
)
unless
File
.
exist?
(
value
)
end
),
FastlaneCore
::
ConfigItem
.
new
(
key: :branch
,
env_name:
"CI_COMMIT_BRANCH"
,
description:
"Branch from which the app is built"
,
optional:
true
,
default_value:
""
),
FastlaneCore
::
ConfigItem
.
new
(
key: :include_branch
,
env_name:
"APPGATE_INCLUDE_BRANCH"
,
description:
"Flag to include branch in the upload"
,
optional:
true
,
default_value:
true
,
type:
Boolean
),
FastlaneCore
::
ConfigItem
.
new
(
key: :api_key
,
env_name:
"APPGATE_API_KEY"
,
description:
"API key for AppGate"
,
...
...
lib/fastlane/plugin/furylion/version.rb
View file @
bcc50713
module
Fastlane
module
Furylion
VERSION
=
"1.1.
7
"
VERSION
=
"1.1.
8
"
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment