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: ebde6851111f59a45441c3de8034f28632ae3f97b3fef031502e0d8ec61518b2
4
- data.tar.gz: d183addbbf0a3364ef677dd3059023952cf2d0ffe8989cd88438a23483c5e9e5
3
+ metadata.gz: 6069bfb9f3b999c3ca4ab31959befcbef2eacc58c239f4cb6d4ca7b927d37c08
4
+ data.tar.gz: 73811559e9cd534d43b94135e9a12620bbd55fd00580535abb3ed5797e03d1c3
5
5
  SHA512:
6
- metadata.gz: 352b42e1111d2553e4bf197f4501f9e7e4b5645236c38b13a72e9f425d9b71265d3e0e5b8b04a65f5befda7101cd06ec1c122ffff0f33f92e02929f83621ae7e
7
- data.tar.gz: 8860fec68c2f2588d880735d264120e19d646e08b307244c36505676471c31f4b1cb59024c94a1a9579bd6dba24b4dabdca7ae48ebd506e10f01808dc43afac1
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
- Actions.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
- Actions.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
- Actions.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"
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
- Actions.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
- Actions.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
- Actions.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"
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
  #####################################################
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module EluxActions
3
- VERSION = "1.2.4"
3
+ VERSION = "1.2.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-elux_actions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis Granath