fastlane-plugin-elux_actions 0.13.0 → 0.14.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: a386289dfa9482af634f827cbc1ef0b7e4ac4c3c
|
4
|
+
data.tar.gz: 3c5950ee79c5737e63fcbd22381a596cd5f80977
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a733b4a434fec38b15fca2e0a5d2e9600abbbf117d717c502ee27beddb37eae8ccdf3376067883723b68fb0f648fce72c6499581f90e9a5b82b55e5107b30c06
|
7
|
+
data.tar.gz: 0bef11bc69da6d706464415436ee01d307630ac2e7926d040dfe19b57569944bd72ab8c3fdc9680626c51f3713e92fac3021fd99a5705d845997ae1d30ecc4b8
|
@@ -11,12 +11,11 @@ module Fastlane
|
|
11
11
|
version = sh "echo `git describe --tags | sed s/v//g`"
|
12
12
|
version = version.rstrip
|
13
13
|
|
14
|
-
classifier_str = "-#{params[:classifier]}"
|
14
|
+
classifier_str = "-#{params[:classifier]}" unless params[:classifier].empty?
|
15
15
|
|
16
16
|
path = params[:group_id].gsub(".", "/")
|
17
17
|
|
18
|
-
|
19
|
-
params[:types].each { |type|
|
18
|
+
params[:types].each do |type|
|
20
19
|
sh "wget -P /tmp #{params[:nexus_base_url]}/repository/#{params[:staging_repo]}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}#{classifier_str}.#{type}"
|
21
20
|
sh "wget -P /tmp #{params[:nexus_base_url]}/repository/#{params[:staging_repo]}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}#{classifier_str}.#{type}.md5"
|
22
21
|
sh "wget -P /tmp #{params[:nexus_base_url]}/repository/#{params[:staging_repo]}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}#{classifier_str}.#{type}.sha1"
|
@@ -24,7 +23,7 @@ module Fastlane
|
|
24
23
|
sh "curl -v -u \"" + params[:nexus_user] + ":" + params[:nexus_password] + "\" --upload-file /tmp/#{params[:artifact_id]}-#{version}#{classifier_str}.#{type} #{params[:nexus_base_url]}/repository/#{params[:release_repo]}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}#{classifier_str}.#{type}"
|
25
24
|
sh "curl -v -u \"" + params[:nexus_user] + ":" + params[:nexus_password] + "\" --upload-file /tmp/#{params[:artifact_id]}-#{version}#{classifier_str}.#{type}.md5 #{params[:nexus_base_url]}/repository/#{params[:release_repo]}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}#{classifier_str}.#{type}.md5"
|
26
25
|
sh "curl -v -u \"" + params[:nexus_user] + ":" + params[:nexus_password] + "\" --upload-file /tmp/#{params[:artifact_id]}-#{version}#{classifier_str}.#{type}.sha1 #{params[:nexus_base_url]}/repository/#{params[:release_repo]}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}#{classifier_str}.#{type}.sha1"
|
27
|
-
|
26
|
+
end
|
28
27
|
end
|
29
28
|
|
30
29
|
#####################################################
|
@@ -50,62 +49,62 @@ module Fastlane
|
|
50
49
|
env_name: "release_repo", # The name of the environment variable
|
51
50
|
description: "Target release repo", # a short description of this parameter
|
52
51
|
verify_block: proc do |value|
|
53
|
-
|
54
|
-
|
52
|
+
UI.user_error!("Please provide nexus_base_url") unless value and !value.empty?
|
53
|
+
# UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
|
55
54
|
end),
|
56
55
|
FastlaneCore::ConfigItem.new(key: :nexus_base_url,
|
57
56
|
env_name: "nexus_base_url", # The name of the environment variable
|
58
57
|
description: "The URL base address to nexus. Example https://localhost:8080", # a short description of this parameter
|
59
58
|
verify_block: proc do |value|
|
60
|
-
|
61
|
-
|
59
|
+
UI.user_error!("Please provide nexus_base_url") unless value and !value.empty?
|
60
|
+
# UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
|
62
61
|
end),
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
UI.user_error!("Please provide staging_repo") unless
|
62
|
+
FastlaneCore::ConfigItem.new(key: :staging_repo,
|
63
|
+
env_name: "staging_repo", # The name of the environment variable
|
64
|
+
description: "The staging repo to fetch artifact from", # a short description of this parameter
|
65
|
+
verify_block: proc do |value|
|
66
|
+
UI.user_error!("Please provide staging_repo") unless value and !value.empty?
|
68
67
|
# UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
|
69
|
-
|
68
|
+
end),
|
70
69
|
FastlaneCore::ConfigItem.new(key: :artifact_id,
|
71
70
|
env_name: "artifact_id", # The name of the environment variable
|
72
71
|
description: "The artifact_id to use", # a short description of this parameter
|
73
72
|
verify_block: proc do |value|
|
74
|
-
|
75
|
-
|
73
|
+
UI.user_error!("Please provide artifact_id") unless value and !value.empty?
|
74
|
+
# UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
|
76
75
|
end),
|
77
76
|
FastlaneCore::ConfigItem.new(key: :group_id,
|
78
77
|
env_name: "group_id",
|
79
78
|
description: "The group_id to use",
|
80
79
|
verify_block: proc do |value|
|
81
|
-
|
82
|
-
|
80
|
+
UI.user_error!("Please provide group_id") unless value and !value.empty?
|
81
|
+
# UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
|
83
82
|
end),
|
84
83
|
FastlaneCore::ConfigItem.new(key: :nexus_user,
|
85
84
|
env_name: "nexus_user",
|
86
85
|
description: "The username in nexus",
|
87
86
|
verify_block: proc do |value|
|
88
|
-
|
89
|
-
|
87
|
+
UI.user_error!("Please provide group_id") unless value and !value.empty?
|
88
|
+
# UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
|
90
89
|
end),
|
91
90
|
FastlaneCore::ConfigItem.new(key: :nexus_password,
|
92
91
|
env_name: "nexus_password",
|
93
92
|
description: "The password in nexus",
|
94
93
|
verify_block: proc do |value|
|
95
|
-
|
96
|
-
|
94
|
+
UI.user_error!("Please provide group_id") unless value and !value.empty?
|
95
|
+
# UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
|
97
96
|
end),
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
97
|
+
FastlaneCore::ConfigItem.new(key: :classifier,
|
98
|
+
env_name: "classifier",
|
99
|
+
description: "The classifier of the artifact",
|
100
|
+
default_value: "",
|
101
|
+
optional: true),
|
102
|
+
FastlaneCore::ConfigItem.new(key: :types,
|
103
|
+
env_name: "types",
|
104
|
+
description: "The artefact types",
|
105
|
+
is_string: false,
|
106
|
+
default_value: ["aar", "pom"],
|
107
|
+
optional: true)
|
109
108
|
|
110
109
|
]
|
111
110
|
end
|