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 CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013 Prashant Nadarajan, Bitium, Inc.
1
+ Copyright (c) 2013 Prashant Nadarajan, Bitium Inc.
2
2
 
3
3
  MIT License
4
4
 
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
- # => Successfully integrated Jenkins Job ($JOB_NAME) with Pivotal Tracker Project (123456)
46
+ # => Successfully integrated Jenkins Job ($JOB_NAME) with Pivotal Tracker Project (123456)
46
47
 
47
- It's best to run this utility as a Post Build Action in Jenkins:
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/tracker_comment.jpg)
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
@@ -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 = "jenkins_tracker"
7
+ gem.name = 'jenkins_tracker'
8
8
  gem.version = JenkinsTracker::VERSION
9
- gem.authors = ["Prashant Nadarajan"]
10
- gem.email = ["prashant.nadarajan@gmail.com"]
11
- gem.description = %q{Integrate Jenkins build info with Pivotal Tracker project stories }
12
- gem.summary = %q{Integrate Jenkins build info as notes to the relevant Pivotal Tracker stories based on post commit message syntax}
13
- gem.homepage = "https://github.com/prashantrajan/jenkins_tracker"
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 = ["lib"]
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'
@@ -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 Jenkins Job (#{job_name}) with Pivotal Tracker Project (#{tracker_project_id})", :green
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
 
@@ -1,3 +1,3 @@
1
1
  module JenkinsTracker
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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.0
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: ! 'Integrate Jenkins build info with Pivotal Tracker project stories '
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: 4101774404869784256
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: 4101774404869784256
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 info as notes to the relevant Pivotal Tracker stories
139
- based on post commit message syntax
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