jenkins-config-finder 0.1 → 0.2

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
  SHA1:
3
- metadata.gz: fb7b5cdfa0594c4c1f6ab50459e6e5dbb69fb06c
4
- data.tar.gz: e4a89e1cb0fde86776c50e98a44d55ec0359ed40
3
+ metadata.gz: 2f801fe196679c4ada940ff07787bc24f151c009
4
+ data.tar.gz: 51cc32a2eb9ce6e0bbfbca6c9c2bc31b0aad6140
5
5
  SHA512:
6
- metadata.gz: 1e1b771ed06e5cb11d1c355808c93f1e4a5da8385f12769077e01aa591bbdaffb33ab057aefba37542566a83c43391ab66c4bd43a25aeb34056a9e91300d646c
7
- data.tar.gz: 33769b77f235c956e5ae9adad8ba8cdb491d970dd5d37f8a4879ae55599f2e14d81676182bc88f58711e908eeaba5e709811a7ef0853621f5b9803e2f2007726
6
+ metadata.gz: 9333410ab1c7c821d8fe44f9e85fc9bf1144375a2977221ead0110b30f45dcb086765b8df9800dc7f86085888f6fac375598c3cbdf8279ee82dcef3ede17fe6e
7
+ data.tar.gz: 32ad47b75b0afe743ce072387cc223304b9a4a7ec5a10a87a4f6f6e4ec8b2dbfac6dae0d781ac95e05be8fdcfc642541099657d21e56f7bcb403fe8aa2c010c4
@@ -1,4 +1,3 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
- - 1.8.7
3
+ - 1.9.3
data/README.md CHANGED
@@ -1,3 +1,55 @@
1
- Jenkins config finder.
1
+ # Jenkins Config Finder [![Build Status](https://travis-ci.org/danb/jenkins-config-finder.svg?branch=master)](https://travis-ci.org/danb/jenkins-config-finder)
2
+
3
+ Searches all the jobs and promotions on a jenkins server to find a supplied XPath pattern.
4
+
5
+ ## Installation
6
+
7
+ Installation should be as simple as the following.
8
+
9
+ ```
10
+ $ gem install jenkins-config-finder
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ### Command Line
16
+
17
+ You can search a jenkins server from the command line.
18
+ **Example: list all the job descriptions
19
+ ```
20
+ $ jenkins-config-finder.rb
21
+ Missing options: url, user, password, path
22
+ Usage: jenkins-config-finder [options]
23
+ -u, --username USERNAME Username
24
+ -p, --password PASSWORD Password
25
+ -s, --server URL URL of the Jenkins server
26
+ -x, --xml-path PATH XML Path to search for i.e. //project//description
27
+ -n, --node NODE NODE to print i.e. name
28
+ $ jenkins-config-finder.rb -s http://my-jenkins-server.com -u dan -p password123 -x //description
29
+ ::::::::MyProject::::::::
30
+ MyProject delivers the functionality that is required
31
+ ::::::::YourProject::::::::
32
+ YourProject aims to simplify your life
33
+ ```
34
+
35
+ ### Ruby
36
+
37
+ You can integrate the searches into ruby code by searching with an XPath path.
38
+
39
+ **Example: list all the jobs git urls
40
+ ```
41
+ require 'jenkins_config_finder'
42
+
43
+ JenkinsConfigFinder.connect(server, username, password)
44
+ jenkins_config = JenkinsConfigFinder.find('//scm[@class="hudson.plugins.git.GitSCM"]', url)
45
+ jenkins_config.each do |job, url|
46
+ puts "#{job} // #{url}"
47
+ end
48
+ ```
49
+
50
+ ## Creators
51
+
52
+ **Dan Bradley**
53
+ - <https://github.com/danb>
54
+ - <https://twitter.com/webdanb>
2
55
 
3
- Searches a jenkins server amongst all the jobs to find a supplied pattern.
@@ -4,12 +4,12 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "jenkins-config-finder"
7
- spec.version = "0.1"
7
+ spec.version = "0.2"
8
8
  spec.authors = ["Bradley, Dan"]
9
9
  spec.email = ["danb468@gmail.com"]
10
10
  spec.summary = %q{Search configurations for all jenkins jobs}
11
11
  spec.description = %q{Find configuration items across all jenkins jobs}
12
- spec.homepage = ""
12
+ spec.homepage = "https://github.com/danb/jenkins-config-finder"
13
13
  spec.license = "MIT"
14
14
 
15
15
  spec.files = `git ls-files -z`.split("\x0")
@@ -2,8 +2,6 @@
2
2
  require 'jenkins_api_client'
3
3
  require 'nokogiri'
4
4
 
5
-
6
-
7
5
  module JenkinsConfigFinder
8
6
 
9
7
  # Establishes a connection to the jenkins server
@@ -32,7 +30,7 @@ module JenkinsConfigFinder
32
30
  # # Find and return all projects descriptions
33
31
  # JenkinsConfigFinder.find('project//description')
34
32
  # # Find and return all git repositories urls
35
- # JenkinsConfigFinder.find('@class:hudson.plugins.git.GitSCM', //hudson.plugins.git.UserRemoteConfig//url)
33
+ # JenkinsConfigFinder.find('//scm[@class="hudson.plugins.git.GitSCM"]', url)
36
34
  #
37
35
  # ==== Returns
38
36
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jenkins-config-finder
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bradley, Dan
@@ -58,7 +58,7 @@ files:
58
58
  - lib/jenkins_config_finder.rb
59
59
  - spec/jenkins_config_finder_spec.rb
60
60
  - spec/spec_helper.rb
61
- homepage: ''
61
+ homepage: https://github.com/danb/jenkins-config-finder
62
62
  licenses:
63
63
  - MIT
64
64
  metadata: {}