jenkins-builder 0.2.6 → 0.3.0

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: 8887c90149d2c3ad5d81be60be732cde64ca6c37634cb68d3f2863220187d409
4
- data.tar.gz: aae2638d1db504ba89c087ee6a914d06c6b707ef8720db9bcb88fed3ccbdf418
3
+ metadata.gz: e02900cebd1b3529e65898dda5aca6e2500f12a2cee552f7a219bc415d8f5721
4
+ data.tar.gz: de6ecb61d2bd8fab3c4dcd4efa783c9e0ab3386e2192b9244f580887571f4a8a
5
5
  SHA512:
6
- metadata.gz: 332a95d45a60d3bdebfaa79f92de9965906d2a813f672d09a5026a9b21bc6a856dccb6cf938b5bafb2128749c767ea7f2707acd234e6b7fcfa88258f1d217e95
7
- data.tar.gz: 7d4579797431ca988a1b785088e8912c1071988892c35d968429ea28985c015b10a416139bc0ccf8da7df94d32d7a1de4eb9c99c675062b5ede3a9dfe71a1a0f
6
+ metadata.gz: e2e9c966bcfa4b663cb22447a502bf91a93621407b189ec8edefc687aaf6edf10cfd170a00abb45a5c9d03f2ae7ee96d60b1a2a40b4b0a8a203ef7e8c4af4978
7
+ data.tar.gz: 8db0ddd35393efad96e3bb122f952d6a95dd4d470632d3f470512d4a778e7f202d7a63e2124cbb99474d41986ae97d0e22accd8ad79aad1641616a9bca28ed36
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jenkins-builder (0.2.6)
4
+ jenkins-builder (0.3.0)
5
5
  ferrum (~> 0.9)
6
6
  jenkins_api_client (~> 1.5.3)
7
7
  pastel (~> 0.7.2)
@@ -165,7 +165,7 @@ module Jenkins
165
165
  end
166
166
 
167
167
  def start_build_use_ferrum(job_name, branch)
168
- browser = Ferrum::Browser.new
168
+ browser = Ferrum::Browser.new(headless: true)
169
169
  browser.goto("#{config.url}/login")
170
170
  username_input = browser.at_css('input[name=j_username]')
171
171
  password_input = browser.at_css('input[name=j_password]')
@@ -179,7 +179,7 @@ module Jenkins
179
179
  browser.at_css('#yui-gen1-button').click
180
180
  else
181
181
  browser.goto("#{config.url}/job/#{job_name}/")
182
- browser.at_xpath('#tasks a.task-link').click
182
+ browser.at_css('#tasks a.task-link[onclick^=return\ build]').click
183
183
  end
184
184
  browser.quit
185
185
  end
@@ -1,5 +1,5 @@
1
1
  module Jenkins
2
2
  module Builder
3
- VERSION = "0.2.6"
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: jenkins-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liu Xiang
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-28 00:00:00.000000000 Z
11
+ date: 2020-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor