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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf5f7652bcf6554e5b235ff413cb42e4529fe5ca33485390260dd726a2633e4d
|
4
|
+
data.tar.gz: e6cd71088a0c0db7a84c6fb819321afdf8e3dba028b4bb8dace86d1c474799a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
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.
|
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-
|
11
|
+
date: 2018-10-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|