fastlane-plugin-update_jenkins_build 0.3.0 → 0.3.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: dd94a14381f6b4065878242ccd53858e717e854015c7a8b8ba74746ee8f5831b
|
4
|
+
data.tar.gz: f0fc857b6e62148a95b9be4f7a9733f8ac178f25081a88f520fe49d2ad703b19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed102c9db15db0ccbc9d42f117dccaf7dc108773ec21c316b721713e1afb6576a4a71a5b0a1a16650fb16ae87683ea6228eed55e7c6cadbf2aaacee5d6b41545
|
7
|
+
data.tar.gz: bf8a574839dc58af1aa288a23d1bf75bac42024d3dc50d390192a70f3b7547ebf91bbd47dfd3de069226a53b86fca0d0c68ef5d544b27733db8d9b84b7bf2f8b
|
@@ -13,7 +13,7 @@ module Fastlane
|
|
13
13
|
@url = params[:url]
|
14
14
|
@project = params[:project]
|
15
15
|
@build_number = params[:build_number]
|
16
|
-
@description = params[:description]
|
16
|
+
@description = format_description(params[:description])
|
17
17
|
|
18
18
|
url = "#{base_uri}/submitDescription"
|
19
19
|
res = if @user || @password
|
@@ -22,7 +22,7 @@ module Fastlane
|
|
22
22
|
else
|
23
23
|
HTTP.post(url, form: {
|
24
24
|
"description" => @description,
|
25
|
-
"Jenkins-Crumb" => "234234234234234234"
|
25
|
+
"Jenkins-Crumb" => "234234234234234234" # random value
|
26
26
|
})
|
27
27
|
end
|
28
28
|
|
@@ -57,6 +57,10 @@ module Fastlane
|
|
57
57
|
[result, res.body]
|
58
58
|
end
|
59
59
|
|
60
|
+
def self.format_description(descripion)
|
61
|
+
descripion.gsub('\n', "\n")
|
62
|
+
end
|
63
|
+
|
60
64
|
def self.base_uri
|
61
65
|
uri = URI(@url)
|
62
66
|
uri.path = "/job/#{@project}/#{@build_number}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-update_jenkins_build
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- icyleaf
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|
@@ -164,7 +164,7 @@ dependencies:
|
|
164
164
|
- - ">="
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '0'
|
167
|
-
description:
|
167
|
+
description:
|
168
168
|
email: icyleaf.cn@gmail.com
|
169
169
|
executables: []
|
170
170
|
extensions: []
|
@@ -180,7 +180,7 @@ homepage: https://github.com/icyleaf/fastlane-plugin-update_jenkins_build
|
|
180
180
|
licenses:
|
181
181
|
- MIT
|
182
182
|
metadata: {}
|
183
|
-
post_install_message:
|
183
|
+
post_install_message:
|
184
184
|
rdoc_options: []
|
185
185
|
require_paths:
|
186
186
|
- lib
|
@@ -195,8 +195,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
195
|
- !ruby/object:Gem::Version
|
196
196
|
version: '0'
|
197
197
|
requirements: []
|
198
|
-
rubygems_version: 3.
|
199
|
-
signing_key:
|
198
|
+
rubygems_version: 3.2.32
|
199
|
+
signing_key:
|
200
200
|
specification_version: 4
|
201
201
|
summary: Update Description of Build
|
202
202
|
test_files: []
|