jenkins_tracker 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +1 -1
- data/README.md +5 -4
- data/jenkins_tracker.gemspec +7 -7
- data/lib/jenkins_tracker/cli.rb +2 -1
- data/lib/jenkins_tracker/version.rb +1 -1
- metadata +6 -6
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
[![Build Status](https://travis-ci.org/prashantrajan/jenkins_tracker.png?branch=master)](https://travis-ci.org/prashantrajan/jenkins_tracker)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/jenkins_tracker.png)](http://badge.fury.io/rb/jenkins_tracker)
|
5
5
|
|
6
|
-
`jenkins_tracker` is a command line utility packaged as a [RubyGem](https://rubygems.org) that integrates [Jenkins](http://jenkins-ci.org/) build information with
|
6
|
+
`jenkins_tracker` is a command line utility packaged as a [RubyGem](https://rubygems.org/gems/jenkins_tracker) that integrates [Jenkins](http://jenkins-ci.org/) build information with
|
7
7
|
the relevant [Pivotal Tracker](https://www.pivotaltracker.com) stories within a project.
|
8
8
|
|
9
9
|
This utility makes some very specific assumptions about your Jenkins environment:-
|
@@ -41,16 +41,17 @@ Or install it yourself as:
|
|
41
41
|
## Usage
|
42
42
|
|
43
43
|
# Assuming environment variables for $JENKINS_HOME, $JOB_NAME, $BUILD_NUMBER & $BUILD_URL exists
|
44
|
+
|
44
45
|
$ bundle exec jenkins_tracker integrate --tracker-token ABC123456 --tracker-project-id 123456
|
45
|
-
|
46
|
+
# => Successfully integrated Jenkins Job ($JOB_NAME) with Pivotal Tracker Project (123456)
|
46
47
|
|
47
|
-
|
48
|
+
This utility could be run as a `Post Build Action` in Jenkins:
|
48
49
|
|
49
50
|
![Jenkins Post Build Action Screenshot](https://raw.github.com/prashantrajan/static_assets/master/jenkins_tracker/images/jenkins_post_build_action.jpg)
|
50
51
|
|
51
52
|
The integration will result in comments being added to the relevant Pivotal Tracker stories:
|
52
53
|
|
53
|
-
![Jenkins Post Build Action Screenshot](https://raw.github.com/prashantrajan/static_assets/master/jenkins_tracker/images/
|
54
|
+
![Jenkins Post Build Action Screenshot](https://raw.github.com/prashantrajan/static_assets/master/jenkins_tracker/images/tracker_comment_2.jpg)
|
54
55
|
|
55
56
|
|
56
57
|
## Contributing
|
data/jenkins_tracker.gemspec
CHANGED
@@ -4,18 +4,18 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
require 'jenkins_tracker/version'
|
5
5
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
|
-
gem.name =
|
7
|
+
gem.name = 'jenkins_tracker'
|
8
8
|
gem.version = JenkinsTracker::VERSION
|
9
|
-
gem.authors = [
|
10
|
-
gem.email = [
|
11
|
-
gem.description = %q{Integrate Jenkins build
|
12
|
-
gem.summary = %q{Integrate Jenkins build
|
13
|
-
gem.homepage =
|
9
|
+
gem.authors = ['Prashant Nadarajan']
|
10
|
+
gem.email = ['prashant.nadarajan@gmail.com']
|
11
|
+
gem.description = %q{Integrate Jenkins build information with a Pivotal Tracker project}
|
12
|
+
gem.summary = %q{Integrate Jenkins build information as notes in the relevant Pivotal Tracker stories based on its post commit message}
|
13
|
+
gem.homepage = 'https://github.com/prashantrajan/jenkins_tracker'
|
14
14
|
|
15
15
|
gem.files = `git ls-files`.split($/)
|
16
16
|
gem.executables = %w(jenkins_tracker)
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
|
-
gem.require_paths = [
|
18
|
+
gem.require_paths = ['lib']
|
19
19
|
|
20
20
|
gem.add_runtime_dependency 'rest-client', '~> 1.6'
|
21
21
|
gem.add_runtime_dependency 'thor', '~> 0.15'
|
data/lib/jenkins_tracker/cli.rb
CHANGED
@@ -21,9 +21,10 @@ module JenkinsTracker
|
|
21
21
|
:build_url => options['build-url']
|
22
22
|
).integrate_job_with_tracker(tracker_project_id)
|
23
23
|
|
24
|
-
say "Successfully integrated
|
24
|
+
say "Successfully integrated #{job_name} build info with Pivotal Tracker Project ##{tracker_project_id}", :green
|
25
25
|
rescue FileNotFoundError => e
|
26
26
|
say e.message, :red
|
27
|
+
abort
|
27
28
|
end
|
28
29
|
end
|
29
30
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jenkins_tracker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -75,7 +75,7 @@ dependencies:
|
|
75
75
|
- - ~>
|
76
76
|
- !ruby/object:Gem::Version
|
77
77
|
version: '2.12'
|
78
|
-
description:
|
78
|
+
description: Integrate Jenkins build information with a Pivotal Tracker project
|
79
79
|
email:
|
80
80
|
- prashant.nadarajan@gmail.com
|
81
81
|
executables:
|
@@ -120,7 +120,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
segments:
|
122
122
|
- 0
|
123
|
-
hash:
|
123
|
+
hash: -1080287462011808168
|
124
124
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
125
|
none: false
|
126
126
|
requirements:
|
@@ -129,14 +129,14 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
version: '0'
|
130
130
|
segments:
|
131
131
|
- 0
|
132
|
-
hash:
|
132
|
+
hash: -1080287462011808168
|
133
133
|
requirements: []
|
134
134
|
rubyforge_project:
|
135
135
|
rubygems_version: 1.8.24
|
136
136
|
signing_key:
|
137
137
|
specification_version: 3
|
138
|
-
summary: Integrate Jenkins build
|
139
|
-
based on post commit message
|
138
|
+
summary: Integrate Jenkins build information as notes in the relevant Pivotal Tracker
|
139
|
+
stories based on its post commit message
|
140
140
|
test_files:
|
141
141
|
- spec/fixtures/git_changelog.txt
|
142
142
|
- spec/fixtures/job.json
|