fastlane-plugin-elux_actions 1.2.4 → 1.2.5
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6069bfb9f3b999c3ca4ab31959befcbef2eacc58c239f4cb6d4ca7b927d37c08
|
|
4
|
+
data.tar.gz: 73811559e9cd534d43b94135e9a12620bbd55fd00580535abb3ed5797e03d1c3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a97c5a67fb396d7d31031c82b891fbfd76008f36fd671b1db782bb7584e49e8ea3b04f06fa18ca28c48cdcf2465467ce642aa200c1c3ce4ea19ae3046b522cfa
|
|
7
|
+
data.tar.gz: 40ad5f3666fda105962559bc51e19341861205fae9b9cfb6593d22d0730195321eba4d9214af3259f026ef1ded30d27a75e58d345e1ef6fff8e1ad3a4aa95681
|
|
@@ -5,6 +5,10 @@ module Fastlane
|
|
|
5
5
|
end
|
|
6
6
|
|
|
7
7
|
class NexusPromoteAction < Action
|
|
8
|
+
def self.verbose
|
|
9
|
+
"-v" if FastlaneCore::Globals.verbose?
|
|
10
|
+
end
|
|
11
|
+
|
|
8
12
|
def self.run(params)
|
|
9
13
|
# fastlane will take care of reading in the parameter and fetching the environment variable:
|
|
10
14
|
version = params[:version]
|
|
@@ -16,15 +20,23 @@ module Fastlane
|
|
|
16
20
|
|
|
17
21
|
path = params[:group_id].gsub(".", "/")
|
|
18
22
|
|
|
23
|
+
ENV['FASTLANE_NEXUS_PASSWORD'] = params[:nexus_password]
|
|
24
|
+
|
|
25
|
+
actions = []
|
|
26
|
+
|
|
19
27
|
params[:types].each do |type|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
28
|
+
actions << "wget -P /tmp #{params[:nexus_base_url]}/repository/#{params[:staging_repo]}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}#{classifier_str}.#{type}"
|
|
29
|
+
actions << "wget -P /tmp #{params[:nexus_base_url]}/repository/#{params[:staging_repo]}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}#{classifier_str}.#{type}.md5"
|
|
30
|
+
actions << "wget -P /tmp #{params[:nexus_base_url]}/repository/#{params[:staging_repo]}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}#{classifier_str}.#{type}.sha1"
|
|
23
31
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
32
|
+
actions << "curl --fail -u \"" + params[:nexus_user] + ":$FASTLANE_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} #{verbose}"
|
|
33
|
+
actions << "curl --fail -u \"" + params[:nexus_user] + ":$FASTLANE_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 #{verbose}"
|
|
34
|
+
actions << "curl --fail -u \"" + params[:nexus_user] + ":$FASTLANE_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 #{verbose}"
|
|
27
35
|
end
|
|
36
|
+
|
|
37
|
+
command = actions.map(&:rstrip).join(' && ')
|
|
38
|
+
|
|
39
|
+
Actions.sh(command)
|
|
28
40
|
end
|
|
29
41
|
|
|
30
42
|
#####################################################
|