fastlane-plugin-elux_actions 0.5.0 → 0.6.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: 70c98de918bc91606c89b1905582c707b9aec8cf
|
4
|
+
data.tar.gz: 9c58f7f92556fa2af82d5fb79621078fa90cb067
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7f3ad57ee974b0e14bc756d33dfe0e88c720566a743a50b67efea5b2b968b517ebeaea14eddc2be139ecf88b2623e69466aa961dbde08a86581241a91840b5c
|
7
|
+
data.tar.gz: 69d9fd2613b5e92de5b036a70a747bcc0624f748915e63382a972cd963afa5002d22fd4da0396b072e25ebe9e7e03af4d9a5ac4af212ea3e18b15f2b9c96b19f
|
@@ -17,10 +17,19 @@ module Fastlane
|
|
17
17
|
UI.message "Parameter artifact_id: #{params[:artifact_id]}"
|
18
18
|
UI.message "Parameter group_id: #{params[:group_id]}"
|
19
19
|
|
20
|
+
if (defined?(params[:classifier])).nil?
|
21
|
+
classifier_str = ""
|
22
|
+
else
|
23
|
+
classifier_str = "-#{params[:classifier]}"
|
24
|
+
end
|
25
|
+
|
20
26
|
path = params[:group_id].gsub(".", "/")
|
21
27
|
UI.message "Parameter API Token: #{path}"
|
22
|
-
sh "wget -P /tmp #{params[:nexus_base_url]}/repository/#{params[:staging_repo]}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}
|
23
|
-
sh "
|
28
|
+
sh "wget -P /tmp #{params[:nexus_base_url]}/repository/#{params[:staging_repo]}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}#{classifier_str}.aar"
|
29
|
+
sh "wget -P /tmp #{params[:nexus_base_url]}/repository/#{params[:staging_repo]}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}#{classifier_str}.pom"
|
30
|
+
|
31
|
+
sh "curl -v -u \"" + params[:nexus_user] + ":" + params[:nexus_password] + "\" --upload-file /tmp/#{params[:artifact_id]}-#{version}#{classifier_str}.aar #{params[:nexus_base_url]}/repository/#{params[:release_repo]}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}-#{classifier_str}.aar"
|
32
|
+
sh "curl -v -u \"" + params[:nexus_user] + ":" + params[:nexus_password] + "\" --upload-file /tmp/#{params[:artifact_id]}-#{version}#{classifier_str}.pom #{params[:nexus_base_url]}/repository/#{params[:release_repo]}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}-#{classifier_str}.pom"
|
24
33
|
|
25
34
|
end
|
26
35
|
|
@@ -91,7 +100,11 @@ module Fastlane
|
|
91
100
|
verify_block: proc do |value|
|
92
101
|
UI.user_error!("Please provide group_id") unless (value and not value.empty?)
|
93
102
|
# UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
|
94
|
-
end)
|
103
|
+
end),
|
104
|
+
FastlaneCore::ConfigItem.new(key: :classifier,
|
105
|
+
env_name: "classifier",
|
106
|
+
description: "The classifier of the artifact",
|
107
|
+
optional: true)
|
95
108
|
|
96
109
|
]
|
97
110
|
end
|