You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a plugin called jenkins "build-per-branch ", which clones the master job and creates clone for the branches in the given git repository . As part of this the plugin does
Copy the job from the current to a new job
Update the branch details and in place of current through post method
However post method fails with httpcode 400 when there is an inheritance project . Looking at the code I think the following snippet in InhertiProject.java throws the error
if (req.getMethod().equals("POST")) {
super.doConfigDotXml(req, rsp);
}
if (!req.getMethod().equals("GET")) {
//Huh? Only GET/POST make sense
rsp.sendError(SC_BAD_REQUEST);
}
If the http method is post , I think we should proceed instead of sending 400 error . Please correct me if I am wrong in this assumption
The text was updated successfully, but these errors were encountered:
Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Premature end of file.
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1239)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:668)
at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:737)
Hello ,
There is a plugin called jenkins "build-per-branch ", which clones the master job and creates clone for the branches in the given git repository . As part of this the plugin does
However post method fails with httpcode 400 when there is an inheritance project . Looking at the code I think the following snippet in InhertiProject.java throws the error
If the http method is post , I think we should proceed instead of sending 400 error . Please correct me if I am wrong in this assumption
The text was updated successfully, but these errors were encountered: