fastlane-plugin-jira_build_number 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: bf54a0b5df5f6bf291c85d8c63c3bff81970efc6395fbb9514ab86704aded314
4
- data.tar.gz: d39cc6fca41270e2b87e5ce10f6b3c74bfb238fe3d64349708010b0895fe5c71
3
+ metadata.gz: bf5f7652bcf6554e5b235ff413cb42e4529fe5ca33485390260dd726a2633e4d
4
+ data.tar.gz: e6cd71088a0c0db7a84c6fb819321afdf8e3dba028b4bb8dace86d1c474799a9
5
5
  SHA512:
6
- metadata.gz: 49b5eb17ecf81e04cdbb537116a2018ed9b10f68da705d965222b22b9dde78dbb69b8b07ae672111a5b672feb607cc5f825a59b744d6a3162765991149b3a423
7
- data.tar.gz: 8285cc079090b4778b340d67f54ec0a2a91847776f15a65e487e03f0b85d079840dee5e5c4ab26a6e08b185aa798c618b739c7787854cfed883a013679f704eb
6
+ metadata.gz: 7909e87bd756f2e3524ca7a95f6a7ced0752f1caa5b1afd9536d6065a547dcb4feff2a0e8c878f5b88324deed6ebc7a6e584771a6db6142fdffe9407982c8c86
7
+ data.tar.gz: 57bd8ec1d03df6ec3f99f6c844e5fa75206e891930dbab1a4fdd304867626721ca5b3c8954544f57f20e0b0b814dd8d6a0e1f7bf6147520f896eb09706e3072c
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # jira\_build\_number plugin
2
2
 
3
- [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-jira_build_number)
3
+ [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-jira_build_number) [![CircleCI](https://circleci.com/gh/telrod/fastlane-plugin-jira_build_number.svg?style=svg)](https://circleci.com/gh/telrod/fastlane-plugin-jira_build_number)
4
4
 
5
5
  ## Getting Started
6
6
 
@@ -28,8 +28,8 @@ module Fastlane
28
28
 
29
29
  UI.message "Jira ticket id: #{jiraTicketId}"
30
30
 
31
- buildNumber = params[:build_number]
32
- buildVersion = params[:version_name]
31
+ buildNumber = params[:build_number].strip
32
+ buildVersion = params[:version_name].strip
33
33
 
34
34
  UI.message "Build version: #{buildVersion}"
35
35
  UI.message "Build number: #{buildNumber}"
@@ -41,14 +41,19 @@ module Fastlane
41
41
 
42
42
  jiraBasicToken = Base64.encode64("#{jiraUsername}:#{jiraPassword}")
43
43
 
44
+ #UI.message "token: #{jiraBasicToken}"
45
+
46
+ payload = "{\"body\": \"Build: #{buildVersion}.#{buildNumber}\"}"
47
+
48
+ #UI.message "payload: #{payload}"
49
+
44
50
  if(!jiraTicketId.nil?)
45
51
  response = RestClient.post "https://#{jiraHostname}/rest/api/2/issue/#{jiraTicketId}/comment",
46
- "{\"body\": \"Build: #{buildVersion}.#{buildNumber}\"}",
52
+ payload,
47
53
  {content_type: "application/json", Authorization: "Basic #{jiraBasicToken}"}
48
54
  end
49
55
 
50
-
51
- #UI.message "Jira post response: #{response}"
56
+ #UI.message "Jira post response: #{response.body}"
52
57
 
53
58
  # sh "shellcommand ./path"
54
59
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module JiraBuildNumber
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-jira_build_number
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Elrod
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-26 00:00:00.000000000 Z
11
+ date: 2018-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client