Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jenkins_api_client issue: Error code 204 #311

Open
noypitt opened this issue Nov 3, 2021 · 0 comments
Open

jenkins_api_client issue: Error code 204 #311

noypitt opened this issue Nov 3, 2021 · 0 comments

Comments

@noypitt
Copy link

noypitt commented Nov 3, 2021

Hi,
I am using your gem and i get the following error:

[2021-11-02T20:38:03] ERROR service_logger: Error occurred while trying to start Jenkins job: ********** : Error code 204
[2021-11-02T20:38:03] DEBUG service_logger: Backtrace:
[2021-11-02T20:38:03] DEBUG service_logger: > /home/postman/.rvm/gems/ruby-2.6.1/gems/jenkins_api_client-1.5.3/lib/jenkins_api_client/client.rb:795:in `handle_exception'
[2021-11-02T20:38:03] DEBUG service_logger: > /home/postman/.rvm/gems/ruby-2.6.1/gems/jenkins_api_client-1.5.3/lib/jenkins_api_client/client.rb:407:in `api_post_request'
[2021-11-02T20:38:03] DEBUG service_logger: > /home/postman/.rvm/gems/ruby-2.6.1/gems/jenkins_api_client-1.5.3/lib/jenkins_api_client/job.rb:932:in `rescue in get_build_id_from_queue'
[2021-11-02T20:38:03] DEBUG service_logger: > /home/postman/.rvm/gems/ruby-2.6.1/gems/jenkins_api_client-1.5.3/lib/jenkins_api_client/job.rb:897:in `get_build_id_from_queue'
[2021-11-02T20:38:03] DEBUG service_logger: > /home/postman/.rvm/gems/ruby-2.6.1/gems/jenkins_api_client-1.5.3/lib/jenkins_api_client/job.rb:865:in `build'in start_task'
[2021-11-02T20:38:03] DEBUG service_logger: > /home/postman/.rvm/gems/ruby-2.6.1/gems/logging-2.3.0/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'

I take a look at pur code and it seems that you does not handle error code 204, so it's just return Error code 204.
Our jenkins version is: 2.249.3

can you please advise?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant