fastlane-plugin-elux_actions 0.5.0 → 0.6.0

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
  SHA1:
3
- metadata.gz: 407cca3866ae42990688a3b26b6329bc9e4ac383
4
- data.tar.gz: 3a1671c9ac5225d546ed4dda358762bae3a49754
3
+ metadata.gz: 70c98de918bc91606c89b1905582c707b9aec8cf
4
+ data.tar.gz: 9c58f7f92556fa2af82d5fb79621078fa90cb067
5
5
  SHA512:
6
- metadata.gz: fd1d1ea25ff6ccbf39a828c168fa143d3ecfe7990ede4e1c09079913711725373e1d561fcedf561b347435b8bb7e2849e7e7f6a79d8b01ee20d1931fb5d99035
7
- data.tar.gz: 9fe9dde6e4b5001fcc649fa78562bcf2454c36337c39baf359f307520586523fa444f8db028685367bc104fa22fe1a9b060ff3aa21f98f91374777b386b01de4
6
+ metadata.gz: a7f3ad57ee974b0e14bc756d33dfe0e88c720566a743a50b67efea5b2b968b517ebeaea14eddc2be139ecf88b2623e69466aa961dbde08a86581241a91840b5c
7
+ data.tar.gz: 69d9fd2613b5e92de5b036a70a747bcc0624f748915e63382a972cd963afa5002d22fd4da0396b072e25ebe9e7e03af4d9a5ac4af212ea3e18b15f2b9c96b19f
@@ -17,10 +17,19 @@ module Fastlane
17
17
  UI.message "Parameter artifact_id: #{params[:artifact_id]}"
18
18
  UI.message "Parameter group_id: #{params[:group_id]}"
19
19
 
20
+ if (defined?(params[:classifier])).nil?
21
+ classifier_str = ""
22
+ else
23
+ classifier_str = "-#{params[:classifier]}"
24
+ end
25
+
20
26
  path = params[:group_id].gsub(".", "/")
21
27
  UI.message "Parameter API Token: #{path}"
22
- sh "wget -P /tmp #{params[:nexus_base_url]}/repository/#{params[:staging_repo]}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}-release.aar"
23
- sh "curl -v -u \"" + params[:nexus_user] + ":" + params[:nexus_password] + "\" --upload-file /tmp/#{params[:artifact_id]}-#{version}-release.aar #{params[:nexus_base_url]}/repository/#{params[:release_repo]}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}-release.aar"
28
+ sh "wget -P /tmp #{params[:nexus_base_url]}/repository/#{params[:staging_repo]}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}#{classifier_str}.aar"
29
+ sh "wget -P /tmp #{params[:nexus_base_url]}/repository/#{params[:staging_repo]}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}#{classifier_str}.pom"
30
+
31
+ sh "curl -v -u \"" + params[:nexus_user] + ":" + params[:nexus_password] + "\" --upload-file /tmp/#{params[:artifact_id]}-#{version}#{classifier_str}.aar #{params[:nexus_base_url]}/repository/#{params[:release_repo]}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}-#{classifier_str}.aar"
32
+ sh "curl -v -u \"" + params[:nexus_user] + ":" + params[:nexus_password] + "\" --upload-file /tmp/#{params[:artifact_id]}-#{version}#{classifier_str}.pom #{params[:nexus_base_url]}/repository/#{params[:release_repo]}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}-#{classifier_str}.pom"
24
33
 
25
34
  end
26
35
 
@@ -91,7 +100,11 @@ module Fastlane
91
100
  verify_block: proc do |value|
92
101
  UI.user_error!("Please provide group_id") unless (value and not value.empty?)
93
102
  # UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
94
- end)
103
+ end),
104
+ FastlaneCore::ConfigItem.new(key: :classifier,
105
+ env_name: "classifier",
106
+ description: "The classifier of the artifact",
107
+ optional: true)
95
108
 
96
109
  ]
97
110
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module EluxActions
3
- VERSION = "0.5.0"
3
+ VERSION = "0.6.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.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis Granath