fastlane-plugin-elux_actions 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3aa23ad463a7711f66bb7bda25cbf5b63b538afd
|
|
4
|
+
data.tar.gz: ba8b16ccf51dfb92c4036b9b174a27ecc30e9670
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4433e017c0b6fd3192b13a2d160cdc023caf31b6f87cc8c6b402072df38d4545fae9f9507eec63b45790ca06f50bf0ac654e605d303f948596f747a90d3c8e40
|
|
7
|
+
data.tar.gz: 92ec71c6e5bfad94e568249049f3496aaba78a0486eae1449f23586d6221f80fbf70d32f03919e55f0766adcca3043e5e548c6f6836244ddb1a33a4da7e78610
|
|
@@ -10,20 +10,19 @@ module Fastlane
|
|
|
10
10
|
|
|
11
11
|
version = sh "echo `git describe --tags | sed s/v//g`"
|
|
12
12
|
version = version.rstrip
|
|
13
|
-
UI.message "Parameter
|
|
14
|
-
UI.message "Parameter
|
|
15
|
-
UI.message "Parameter
|
|
13
|
+
UI.message "Parameter nexus_base_url: #{params[:nexus_base_url]}"
|
|
14
|
+
UI.message "Parameter staging_repo: #{params[:staging_repo]}"
|
|
15
|
+
UI.message "Parameter release_repo: #{params[:release_repo]}"
|
|
16
|
+
UI.message "Parameter version: #{version}"
|
|
17
|
+
UI.message "Parameter artifact_id: #{params[:artifact_id]}"
|
|
18
|
+
UI.message "Parameter group_id: #{params[:group_id]}"
|
|
16
19
|
|
|
17
20
|
path = params[:group_id].gsub(".", "/")
|
|
18
21
|
UI.message "Parameter API Token: #{path}"
|
|
19
|
-
sh "wget -P /tmp
|
|
22
|
+
sh "wget -P /tmp #{params[:nexus_base_url]}/repository/#{params[:staging_repo]}/#{path}/#{params[:artifact_id]}/#{version}/indoor-sdk-android-#{version}-release.aar"
|
|
20
23
|
|
|
21
|
-
sh "curl -v -u \"" + params[:nexus_user] + ":" + params[:nexus_password] + "\" --upload-file /tmp/#{params[:artifact_id]}-#{version}-release.aar
|
|
24
|
+
sh "curl -v -u \"" + params[:nexus_user] + ":" + params[:nexus_password] + "\" --upload-file /tmp/#{params[:artifact_id]}-#{version}-release.aar #{params[:nexus_base_url]}/repository/#{:release_repo}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}-release.aar"
|
|
22
25
|
|
|
23
|
-
|
|
24
|
-
#sh "echo #{params[:test]}"
|
|
25
|
-
|
|
26
|
-
# Actions.lane_context[SharedValues::RELEASE_TO_NEXUS_CUSTOM_VALUE] = "my_val"
|
|
27
26
|
end
|
|
28
27
|
|
|
29
28
|
#####################################################
|
|
@@ -45,6 +44,27 @@ module Fastlane
|
|
|
45
44
|
|
|
46
45
|
# Below a few examples
|
|
47
46
|
[
|
|
47
|
+
FastlaneCore::ConfigItem.new(key: :release_repo,
|
|
48
|
+
env_name: "release_repo", # The name of the environment variable
|
|
49
|
+
description: "Target release repo", # a short description of this parameter
|
|
50
|
+
verify_block: proc do |value|
|
|
51
|
+
UI.user_error!("Please provide nexus_base_url") unless (value and not value.empty?)
|
|
52
|
+
# UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
|
|
53
|
+
end),
|
|
54
|
+
FastlaneCore::ConfigItem.new(key: :nexus_base_url,
|
|
55
|
+
env_name: "nexus_base_url", # The name of the environment variable
|
|
56
|
+
description: "The URL base address to nexus. Example https://localhost:8080", # a short description of this parameter
|
|
57
|
+
verify_block: proc do |value|
|
|
58
|
+
UI.user_error!("Please provide nexus_base_url") unless (value and not value.empty?)
|
|
59
|
+
# UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
|
|
60
|
+
end),
|
|
61
|
+
FastlaneCore::ConfigItem.new(key: :staging_repo,
|
|
62
|
+
env_name: "staging_repo", # The name of the environment variable
|
|
63
|
+
description: "The staging repo to fetch artifact from", # a short description of this parameter
|
|
64
|
+
verify_block: proc do |value|
|
|
65
|
+
UI.user_error!("Please provide staging_repo") unless (value and not value.empty?)
|
|
66
|
+
# UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
|
|
67
|
+
end),
|
|
48
68
|
FastlaneCore::ConfigItem.new(key: :artifact_id,
|
|
49
69
|
env_name: "artifact_id", # The name of the environment variable
|
|
50
70
|
description: "The artifact_id to use", # a short description of this parameter
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fastlane-plugin-elux_actions
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dennis Granath
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-04-
|
|
11
|
+
date: 2017-04-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pry
|