jenkins_api_client icon indicating copy to clipboard operation
jenkins_api_client copied to clipboard

completion_proc not being called

Open ladlestein opened this issue 10 years ago • 1 comments

Try running your test suite; for me, I get failure, in all the tests that use completion_proc, in the functional job suite. And when I try to use a completion_proc in my own code it never gets called.

ladlestein avatar Oct 06 '14 17:10 ladlestein

I see the following failures as well.

Failures:

  1) JenkinsApi::Client::Job With properly initialized client InstanceMethods #build Should build the specified job (wait for start)
     Failure/Error: build_id = @client.job.build(@job_name, {}, build_opts)
     Timeout::Error:
       execution expired
     # ./lib/jenkins_api_client/job.rb:913:in `sleep'
     # ./lib/jenkins_api_client/job.rb:913:in `block in get_build_id_from_queue'
     # ./lib/jenkins_api_client/job.rb:896:in `get_build_id_from_queue'
     # ./lib/jenkins_api_client/job.rb:862:in `build'
     # ./spec/func_tests/job_spec.rb:526:in `block (5 levels) in <top (required)>'

  2) JenkinsApi::Client::Job With properly initialized client InstanceMethods #build Should build the specified job (wait for start - but not long enough)
     Failure/Error: ).should_not == "running"
       expected not: == "running"
                got:    "running"
     # ./spec/func_tests/job_spec.rb:538:in `block (5 levels) in <top (required)>'
  3) JenkinsApi::Client::Job With properly initialized client InstanceMethods #build Should build the specified job (wait for start - but not long enough, cancelled)
     Failure/Error: ).should_not == "running"
       expected not: == "running"
                got:    "running"
     # ./spec/func_tests/job_spec.rb:566:in `block (5 levels) in <top (required)>'
  4) JenkinsApi::Client::Job With properly initialized client InstanceMethods #stop Should be able to abort a recent build of a running job
     Failure/Error: ).should_not == "running"
       expected not: == "running"
                got:    "running"
     # ./spec/func_tests/job_spec.rb:611:in `block (5 levels) in <top (required)>'

Finished in 8 minutes 42 seconds
113 examples, 4 failures

I'll look into that.

arangamani avatar Nov 16 '14 03:11 arangamani