Summary: | When create job with REST or CLI fails all traces of job must be removed | ||
---|---|---|---|
Product: | [Technology] Hudson | Reporter: | Bob Foster <bobfoster> |
Component: | Core | Assignee: | Bob Foster <bobfoster> |
Status: | RESOLVED FIXED | QA Contact: | Geoff Waymark <mygwaymark> |
Severity: | blocker | ||
Priority: | P1 | CC: | bobfoster, danny.ju, lamujuri, mygwaymark |
Version: | 3.1.0 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Mac OS X | ||
Whiteboard: |
Description
Bob Foster
2013-09-05 13:39:14 EDT
The CURL command which be used to reproduced the issue is: curl -X POST "http://USERNAME:PASSWORD@HOST_AND_HUDSON_PATH/hudson/createItem?name=newjob1" --data-binary "@new-config.xml" -H "Content-Type: text/xml" There's an extra /hudson in your example. That is part of the hudson path in DCS. I tested with: curl -X POST "http://bob:bob@localhost:8080/createItem?name=Garbage" --data-binary "@garbage" -H "Content-Type: text/xml" Fixed by commit 4c75ffcc0e99d350cbab5f50f80a3a23435f9bac Tested with both REST createItem and CLI create-job. It will be the same for anything that creates a job from XML. Changed to P1 blocker, as a) this is a regression in 3.1.0 and b) when it happens Hudson is essentially broken as it can no longer list jobs. The update case in update-jobs CLI still needs to be fixed. Fixed by commit c80ccc77a413be45597b4d5b4b5714ee1845ddaa Verified fixed in SNAPSHOT build #500 |