fastlane-plugin-elux_actions 1.2.3 → 1.2.4

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
- SHA1:
3
- metadata.gz: 10d100d0c6f3423c3038b4487f9305c8a7abd1a7
4
- data.tar.gz: 7e5f8ca6d75c6a32266176b57ba8adc769f87b81
2
+ SHA256:
3
+ metadata.gz: ebde6851111f59a45441c3de8034f28632ae3f97b3fef031502e0d8ec61518b2
4
+ data.tar.gz: d183addbbf0a3364ef677dd3059023952cf2d0ffe8989cd88438a23483c5e9e5
5
5
  SHA512:
6
- metadata.gz: 9d8318d85ea71297085c8caa62197e79bdcc6837f70414fe06cdba90fd5660469a80ecf693b8142a0f983b1a31048059b797fb87036e0ba43d863a23ee7d9f15
7
- data.tar.gz: 6137688a25e23c1238030b25621481daa85c463ce63faf3bfaa283279f8d33181732d5d93b3a27fe0a64c845b936fbb05d39a5cfce1007c2a8369100ace6b367
6
+ metadata.gz: 352b42e1111d2553e4bf197f4501f9e7e4b5645236c38b13a72e9f425d9b71265d3e0e5b8b04a65f5befda7101cd06ec1c122ffff0f33f92e02929f83621ae7e
7
+ data.tar.gz: 8860fec68c2f2588d880735d264120e19d646e08b307244c36505676471c31f4b1cb59024c94a1a9579bd6dba24b4dabdca7ae48ebd506e10f01808dc43afac1
@@ -7,8 +7,9 @@ module Fastlane
7
7
  class NexusPromoteAction < Action
8
8
  def self.run(params)
9
9
  # fastlane will take care of reading in the parameter and fetching the environment variable:
10
+ version = params[:version]
11
+ version ||= Actions.sh "echo `git describe --tags | sed s/v//g`"
10
12
 
11
- version = sh "echo `git describe --tags | sed s/v//g`"
12
13
  version = version.rstrip
13
14
 
14
15
  classifier_str = "-#{params[:classifier]}" unless params[:classifier].empty?
@@ -16,13 +17,13 @@ module Fastlane
16
17
  path = params[:group_id].gsub(".", "/")
17
18
 
18
19
  params[:types].each do |type|
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}"
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"
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"
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"
22
23
 
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}"
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"
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"
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"
26
27
  end
27
28
  end
28
29
 
@@ -45,67 +46,84 @@ module Fastlane
45
46
 
46
47
  # Below a few examples
47
48
  [
48
- FastlaneCore::ConfigItem.new(key: :release_repo,
49
- env_name: "release_repo", # The name of the environment variable
50
- description: "Target release repo", # a short description of this parameter
51
- verify_block: proc do |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)
54
- end),
55
- FastlaneCore::ConfigItem.new(key: :nexus_base_url,
56
- env_name: "nexus_base_url", # The name of the environment variable
57
- description: "The URL base address to nexus. Example https://localhost:8080", # a short description of this parameter
58
- verify_block: proc do |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)
61
- end),
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?
67
- # UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
68
- end),
69
- FastlaneCore::ConfigItem.new(key: :artifact_id,
70
- env_name: "artifact_id", # The name of the environment variable
71
- description: "The artifact_id to use", # a short description of this parameter
72
- verify_block: proc do |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)
75
- end),
76
- FastlaneCore::ConfigItem.new(key: :group_id,
77
- env_name: "group_id",
78
- description: "The group_id to use",
79
- verify_block: proc do |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)
82
- end),
83
- FastlaneCore::ConfigItem.new(key: :nexus_user,
84
- env_name: "nexus_user",
85
- description: "The username in nexus",
86
- verify_block: proc do |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)
89
- end),
90
- FastlaneCore::ConfigItem.new(key: :nexus_password,
91
- env_name: "nexus_password",
92
- description: "The password in nexus",
93
- verify_block: proc do |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)
96
- end),
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: ["jar", "pom"],
107
- optional: true)
108
-
49
+ FastlaneCore::ConfigItem.new(
50
+ key: :release_repo,
51
+ env_name: "release_repo",
52
+ description: "Target release repo",
53
+ verify_block: proc do |value|
54
+ UI.user_error!("Please provide nexus_base_url") unless value and !value.empty?
55
+ end
56
+ ),
57
+ FastlaneCore::ConfigItem.new(
58
+ key: :nexus_base_url,
59
+ env_name: "nexus_base_url",
60
+ description: "The URL base address to nexus. Example https://localhost:8080",
61
+ verify_block: proc do |value|
62
+ UI.user_error!("Please provide nexus_base_url") unless value and !value.empty?
63
+ end
64
+ ),
65
+ FastlaneCore::ConfigItem.new(
66
+ key: :staging_repo,
67
+ env_name: "staging_repo",
68
+ description: "The staging repo to fetch artifact from",
69
+ verify_block: proc do |value|
70
+ UI.user_error!("Please provide staging_repo") unless value and !value.empty?
71
+ end
72
+ ),
73
+ FastlaneCore::ConfigItem.new(
74
+ key: :artifact_id,
75
+ env_name: "artifact_id",
76
+ description: "The artifact_id to use",
77
+ verify_block: proc do |value|
78
+ UI.user_error!("Please provide artifact_id") unless value and !value.empty?
79
+ end
80
+ ),
81
+ FastlaneCore::ConfigItem.new(
82
+ key: :group_id,
83
+ env_name: "group_id",
84
+ description: "The group_id to use",
85
+ verify_block: proc do |value|
86
+ UI.user_error!("Please provide group_id") unless value and !value.empty?
87
+ end
88
+ ),
89
+ FastlaneCore::ConfigItem.new(
90
+ key: :nexus_user,
91
+ env_name: "nexus_user",
92
+ description: "The username in nexus",
93
+ verify_block: proc do |value|
94
+ UI.user_error!("Please provide group_id") unless value and !value.empty?
95
+ end
96
+ ),
97
+ FastlaneCore::ConfigItem.new(
98
+ key: :nexus_password,
99
+ env_name: "nexus_password",
100
+ description: "The password in nexus",
101
+ verify_block: proc do |value|
102
+ UI.user_error!("Please provide group_id") unless value and !value.empty?
103
+ end
104
+ ),
105
+ FastlaneCore::ConfigItem.new(
106
+ key: :classifier,
107
+ env_name: "classifier",
108
+ description: "The classifier of the artifact",
109
+ default_value: "",
110
+ optional: true
111
+ ),
112
+ FastlaneCore::ConfigItem.new(
113
+ key: :types,
114
+ env_name: "types",
115
+ description: "The artifact types",
116
+ is_string: false,
117
+ default_value: ["jar", "pom"],
118
+ optional: true
119
+ ),
120
+ FastlaneCore::ConfigItem.new(
121
+ key: :version,
122
+ env_name: "version",
123
+ description: "The version to promote",
124
+ is_string: true,
125
+ optional: true
126
+ )
109
127
  ]
110
128
  end
111
129
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module EluxActions
3
- VERSION = "1.2.3"
3
+ VERSION = "1.2.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-elux_actions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis Granath
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-19 00:00:00.000000000 Z
11
+ date: 2017-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -128,7 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
128
  version: '0'
129
129
  requirements: []
130
130
  rubyforge_project:
131
- rubygems_version: 2.6.14
131
+ rubygems_version: 2.7.4
132
132
  signing_key:
133
133
  specification_version: 4
134
134
  summary: Plugin including actions for releasing the android SDK