Bug 501438 - Reload Configuration from Disk (or POSTing config.xml) fails the running builds
Summary: Reload Configuration from Disk (or POSTing config.xml) fails the running builds
Status: NEW
Alias: None
Product: Hudson
Classification: Technology
Component: Core (show other bugs)
Version: 3.3.2   Edit
Hardware: All Linux
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Winston Prakash CLA
QA Contact: Geoff Waymark CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-14 11:48 EDT by sanjai gandhi CLA
Modified: 2016-09-14 11:48 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sanjai gandhi CLA 2016-09-14 11:48:28 EDT
We are using Hudson Remote Access API to create jobs, update jobs, trigger builds, etc, ...

When we try to update an existing job (which has a build running), by posting the updated config.xml, then then job is updated, but 

1. the running build is failed. 
2. unable to query the status of failed build
3. above two happens when we Reload the configuration from Disk option as well.

When we try to update the job from Hudson UI which has a running build, it just works fine and the reported issue is not seen.

This issue is reported on Jenkins core and fixed as well.

ref : https://issues.jenkins-ci.org/browse/JENKINS-3265

We have seen this issue on Hudson-3.3.2

Steps to reproduce:

1. create a job on hudson
2. trigger the build which sleeps for some time
3. try to post config.xml of the job using hudson remote access api
4. or modify the jobs' config.xml manually save it and try 'Reload Configuration from Disk' from global configuration.