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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: ebde6851111f59a45441c3de8034f28632ae3f97b3fef031502e0d8ec61518b2
|
4
|
+
data.tar.gz: d183addbbf0a3364ef677dd3059023952cf2d0ffe8989cd88438a23483c5e9e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
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
|
|
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.
|
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-
|
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.
|
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
|