Skip to main content



      Home
Home » Archived » Hudson » Job aborted when updating the config.xml from API
Job aborted when updating the config.xml from API [message #1705059] Tue, 11 August 2015 12:43 Go to next message
Eclipse UserFriend
When the job is in progress of building, sending the API to update it's config.xml will get the job interrupted. This marks the job as RED, but no error messages are displayed anywhere.

Is there a requirement that we should only update the config.xml from API when the job is idle ? Sometimes need to update tens of jobs in batches from script, hard to wait until all jobs are in idle.

Thanks for the help.
Hudson version; 3.3.0
Re: Job aborted when updating the config.xml from API [message #1705082 is a reply to message #1705059] Tue, 11 August 2015 18:55 Go to previous messageGo to next message
Eclipse UserFriend
When you send the config.xml to Hudson, the Job object is immediately updated with the data in the posted XML. Since the Job object is involved in the build, updating the Job object causing the build to interrupt. Since the build lost reference to the original object, the build stops, but I guess nothing is logging the interruption.

Unfortunately, since Hudson immediately update the job object, the Job should not be updated when it is building, else the build will unexpectedly interrupted.
Re: Job aborted when updating the config.xml from API [message #1705163 is a reply to message #1705082] Wed, 12 August 2015 10:11 Go to previous messageGo to next message
Eclipse UserFriend
Thank you very much for confirming. That's why I'm thinking about to wrap the API to perform additional check if the last build is in "building" to move on updating.

But how does the config update work from web UI when the job is building? My assumption was they should behave the same way if both goes via API.
Re: Job aborted when updating the config.xml from API [message #1705177 is a reply to message #1705163] Wed, 12 August 2015 11:50 Go to previous messageGo to next message
Eclipse UserFriend
It behaves the same way. Underneath the same API is used.
Re: Job aborted when updating the config.xml from API [message #1705406 is a reply to message #1705177] Fri, 14 August 2015 14:14 Go to previous message
Eclipse UserFriend
That's weird then, because the config can be updated from the web page when the job is building.
Previous Topic:Online Hudson Java API documents?
Next Topic:Mobile usability improvement (not-yet official project)
Goto Forum:
  


Current Time: Tue Mar 11 07:17:52 EDT 2025

Powered by FUDForum. Page generated in 0.02972 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top