fastlane-plugin-elux_actions 0.2.0 → 0.3.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: 1bc0c299758936bb24ca79af7311b7c86a6b0d89
4
- data.tar.gz: e143dcdd2b379c1553e2a13af16e5680b22ee74e
3
+ metadata.gz: 3aa23ad463a7711f66bb7bda25cbf5b63b538afd
4
+ data.tar.gz: ba8b16ccf51dfb92c4036b9b174a27ecc30e9670
5
5
  SHA512:
6
- metadata.gz: e09095efc00febfbc4d248e6934238d196be92c3c3edf2e25bda93b5306ab47e9421db726d730834ca831ba028519b4bfa4b5e4ae2a396a898a161ff2b14c283
7
- data.tar.gz: b449e04222eb6a24b7a0cae86e1444cbc14398b214e87f64a18db3a5f306e3d32a18ae311c3c283891a0b31f106d0ff8d20f8ca9f42ddbc6d1155a7f5591939b
6
+ metadata.gz: 4433e017c0b6fd3192b13a2d160cdc023caf31b6f87cc8c6b402072df38d4545fae9f9507eec63b45790ca06f50bf0ac654e605d303f948596f747a90d3c8e40
7
+ data.tar.gz: 92ec71c6e5bfad94e568249049f3496aaba78a0486eae1449f23586d6221f80fbf70d32f03919e55f0766adcca3043e5e548c6f6836244ddb1a33a4da7e78610
@@ -10,20 +10,19 @@ module Fastlane
10
10
 
11
11
  version = sh "echo `git describe --tags | sed s/v//g`"
12
12
  version = version.rstrip
13
- UI.message "Parameter API Token: #{version}"
14
- UI.message "Parameter API Token: #{params[:artifact_id]}"
15
- UI.message "Parameter API Token: #{params[:group_id]}"
13
+ UI.message "Parameter nexus_base_url: #{params[:nexus_base_url]}"
14
+ UI.message "Parameter staging_repo: #{params[:staging_repo]}"
15
+ UI.message "Parameter release_repo: #{params[:release_repo]}"
16
+ UI.message "Parameter version: #{version}"
17
+ UI.message "Parameter artifact_id: #{params[:artifact_id]}"
18
+ UI.message "Parameter group_id: #{params[:group_id]}"
16
19
 
17
20
  path = params[:group_id].gsub(".", "/")
18
21
  UI.message "Parameter API Token: #{path}"
19
- sh "wget -P /tmp https://nexus.electrolux.io/repository/maven-candidates/#{path}/#{params[:artifact_id]}/#{version}/indoor-sdk-android-#{version}-release.aar"
22
+ sh "wget -P /tmp #{params[:nexus_base_url]}/repository/#{params[:staging_repo]}/#{path}/#{params[:artifact_id]}/#{version}/indoor-sdk-android-#{version}-release.aar"
20
23
 
21
- sh "curl -v -u \"" + params[:nexus_user] + ":" + params[:nexus_password] + "\" --upload-file /tmp/#{params[:artifact_id]}-#{version}-release.aar https://nexus.electrolux.io/repository/maven-releases/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}-release.aar"
24
+ sh "curl -v -u \"" + params[:nexus_user] + ":" + params[:nexus_password] + "\" --upload-file /tmp/#{params[:artifact_id]}-#{version}-release.aar #{params[:nexus_base_url]}/repository/#{:release_repo}/#{path}/#{params[:artifact_id]}/#{version}/#{params[:artifact_id]}-#{version}-release.aar"
22
25
 
23
-
24
- #sh "echo #{params[:test]}"
25
-
26
- # Actions.lane_context[SharedValues::RELEASE_TO_NEXUS_CUSTOM_VALUE] = "my_val"
27
26
  end
28
27
 
29
28
  #####################################################
@@ -45,6 +44,27 @@ module Fastlane
45
44
 
46
45
  # Below a few examples
47
46
  [
47
+ FastlaneCore::ConfigItem.new(key: :release_repo,
48
+ env_name: "release_repo", # The name of the environment variable
49
+ description: "Target release repo", # a short description of this parameter
50
+ verify_block: proc do |value|
51
+ UI.user_error!("Please provide nexus_base_url") unless (value and not value.empty?)
52
+ # UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
53
+ end),
54
+ FastlaneCore::ConfigItem.new(key: :nexus_base_url,
55
+ env_name: "nexus_base_url", # The name of the environment variable
56
+ description: "The URL base address to nexus. Example https://localhost:8080", # a short description of this parameter
57
+ verify_block: proc do |value|
58
+ UI.user_error!("Please provide nexus_base_url") unless (value and not value.empty?)
59
+ # UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
60
+ end),
61
+ FastlaneCore::ConfigItem.new(key: :staging_repo,
62
+ env_name: "staging_repo", # The name of the environment variable
63
+ description: "The staging repo to fetch artifact from", # a short description of this parameter
64
+ verify_block: proc do |value|
65
+ UI.user_error!("Please provide staging_repo") unless (value and not value.empty?)
66
+ # UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(value)
67
+ end),
48
68
  FastlaneCore::ConfigItem.new(key: :artifact_id,
49
69
  env_name: "artifact_id", # The name of the environment variable
50
70
  description: "The artifact_id to use", # a short description of this parameter
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module EluxActions
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
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: 0.2.0
4
+ version: 0.3.0
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-04-26 00:00:00.000000000 Z
11
+ date: 2017-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry