Skip to content

Commit

Permalink
Make the code more verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
ertrzyiks committed Jul 1, 2021
1 parent 1c43399 commit e5df8af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jenkins/job_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ def call
puts "::set-output name=jenkins_job_url::#{job_run_url}"
puts "Job run URL: #{job_run_url}"

exit(0) if @async_mode
if @async_mode
puts "Stopping at the triggering step since the async option is enabled"
exit(0)
end

puts "Observing the job progress"
job_progress(job_run_url, job_timeout)
exit(0)
end
Expand Down

0 comments on commit e5df8af

Please sign in to comment.