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: ea7624ca2c4aa05de88dfba867e8c63467750822
4
- data.tar.gz: 3337d695733736111852401d2ee17108bae265f8
3
+ metadata.gz: a386289dfa9482af634f827cbc1ef0b7e4ac4c3c
4
+ data.tar.gz: 3c5950ee79c5737e63fcbd22381a596cd5f80977
5
5
  SHA512:
6
- metadata.gz: 027251ae22f772178770e714fd510df02abb78ce1f9ae02d850da31f368e5b2c89bd9fe3a414ec6fa88f1c9d54f3ced67ea9b3462ae253d0c16c26a4455fed97
7
- data.tar.gz: c12078a49e7eb988cf94ccb276b9f0195c430127ee13de4c869143bdc9154cc17cd81ac4572321858f3fc45354f2c9d20902fdebde326eef710fe51a749c1719
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]}" if !params[:classifier].empty?
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
- UI.user_error!("Please provide nexus_base_url") unless (value and not value.empty?)
54
- # UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
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
- UI.user_error!("Please provide nexus_base_url") unless (value and not value.empty?)
61
- # UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
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
- FastlaneCore::ConfigItem.new(key: :staging_repo,
64
- env_name: "staging_repo", # The name of the environment variable
65
- description: "The staging repo to fetch artifact from", # a short description of this parameter
66
- verify_block: proc do |value|
67
- UI.user_error!("Please provide staging_repo") unless (value and not value.empty?)
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
- end),
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
- UI.user_error!("Please provide artifact_id") unless (value and not value.empty?)
75
- # UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
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
- UI.user_error!("Please provide group_id") unless (value and not value.empty?)
82
- # UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
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
- UI.user_error!("Please provide group_id") unless (value and not value.empty?)
89
- # UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
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
- UI.user_error!("Please provide group_id") unless (value and not value.empty?)
96
- # UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
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
- FastlaneCore::ConfigItem.new(key: :classifier,
99
- env_name: "classifier",
100
- description: "The classifier of the artifact",
101
- default_value: "",
102
- optional: true),
103
- FastlaneCore::ConfigItem.new(key: :types,
104
- env_name: "types",
105
- description: "The artefact types",
106
- is_string: false,
107
- default_value: ["aar", "pom"],
108
- optional: true)
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
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module EluxActions
3
- VERSION = "0.13.0"
3
+ VERSION = "0.14.0"
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: 0.13.0
4
+ version: 0.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis Granath