12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# File 'lib/jenkins_tracker/cli.rb', line 12
def integrate
job_name = options['job-name']
tracker_project_id = options['tracker-project-id']
begin
JenkinsTracker::Base.new(
:changelog_file => options['changelog-file'],
:tracker_token => options['tracker-token'],
:job_name => job_name,
:build_url => options['build-url']
).integrate_job_with_tracker(tracker_project_id)
say "Successfully integrated #{job_name} build info with Pivotal Tracker Project ##{tracker_project_id}", :green
rescue FileNotFoundError => e
say e.message, :red
abort
end
end
|