-
Notifications
You must be signed in to change notification settings - Fork 29
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
Unable to launch job #27
Comments
I turned off HTTP/2.0 and still have the issue. A slightly different packet trace: POST /job/manage-pubkeys/build HTTP/1.1 HTTP/1.1 403 No valid crumb was included in the request HTTP ERROR 403Problem accessing /job/manage-pubkeys/build. Reason: No valid crumb was included in the request Powered by Jetty:// 9.4.z-SNAPSHOT |
The plugin's implementation seems to expect that sending a POST request to "jenkins-url/job-name/build" with no body will work. I do not think it is the case with latest Jenkins versions (at least for the version I am using). I think there are three options:
|
FWIW I disabled CSRF in my jenkins. It would give a similar (identical?) error if enabled. That potential issue is eliminated. I'm on version 2.207.1. |
My experience was similar on version 2.107 If this is the case, then have you tried running it on a job that requires no parameters to build?
error, than I think something else is wrong with the configuration. |
Now I get "400 nothing is submitted".
|
I'm sorry that I'm not helping you with solving the issue, I will check this weekend. |
Yes, you are receiving that error because most likely you job named ob-ctl-restart-unstable requires some parameters. Is this true? |
You know what, you are right. This particular job does require a parameter. I wasn't thinking of it because it is an "optional" parameter in that I usually leave it blank. But jenkins doesn't know that. I just tested with a different job that takes no parameters. It works! The ability to run a job that takes parameters would be a nice-to-have, but that's a separate issue. Between parameters and disabling CSRF I'd say this issue is solved. Those are potential TODO items in their own right. |
I had the same problem with you, and I was just trying to get the build in Jenkins to the terminal,do you know how to do it? |
This is just API endpoint issue, which is diffent between parameterized and non parameterized. ; Works with non parameterized build job
(build-url (format "%sjob/%s/build" (get-jenkins-url) jobname)))
; Works with parameterized build job
(build-url (format "%sjob/%s/buildWithParameters" (get-jenkins-url) jobname))) No parameters request runs with default parameters. |
I can do most other actions that require an HTTP request, but I cannot launch a job. Packet trace:
POST /job/manage-pubkeys/build HTTP/1.1
MIME-Version: 1.0
Extension: Security/Digest Security/SSL
Host: openbook-jenkins-master.mon.vzwops.com
Accept-encoding: gzip
Accept-charset: utf-8;q=1, gb2312;q=0.5, iso-8859-1;q=0.5, big5;q=0.5, iso-2022-jp;q=0.5, shift_jis;q=0.5, euc-tw;q=0.5, euc-jp;q=0.5, euc-jis-2004;q=0.5, euc-kr;q=0.5, iso-8859-15;q=0.5, us-ascii;q=0.5, utf-7;q=0.5, hz-gb-2312;q=0.5, big5-hkscs;q=0.5, gbk;q=0.5, gb18030;q=0.5, iso-8859-5;q=0.5, koi8-r;q=0.5, koi8-u;q=0.5, cp866;q=0.5, koi8-t;q=0.5, windows-1251;q=0.5, cp855;q=0.5, iso-8859-2;q=0.5, iso-8859-3;q=0.5, iso-8859-4;q=0.5, iso-8859-9;q=0.5, iso-8859-10;q=0.5, iso-8859-13;q=0.5, iso-8859-14;q=0.5, windows-1250;q=0.5, windows-1252;q=0.5, windows-1254;q=0.5, windows-1257;q=0.5, cp775;q=0.5, cp850;q=0.5, cp852;q=0.5, cp857;q=0.5, cp858;q=0.5, cp860;q=0.5, cp861;q=0.5, cp863;q=0.5, cp865;q=0.5, cp437;q=0.5, macintosh;q=0.5, next;q=0.5, hp-roman8;q=0.5, adobe-standard-encoding;q=0.5, iso-8859-16;q=0.5, iso-8859-7;q=0.5, windows-1253;q=0.5, cp737;q=0.5, cp851;q=0.5, cp869;q=0.5, iso-8859-8;q=0.5, windows-1255;q=0.5, cp862;q=0.5, iso-2022-jp-2004;q=0.5, cp874;q=0.5, iso-8859-11;q=0.5, viscii;q=0.5, windows-1258;q=0.5, iso-8859-6;q=0.5, windows-1256;q=0.5, iso-2022-cn;q=0.5, iso-2022-cn-ext;q=0.5, iso-2022-jp-2;q=0.5, iso-2022-kr;q=0.5, utf-16le;q=0.5, utf-16be;q=0.5, utf-16;q=0.5, x-ctext;q=0.5
Accept: /
User-Agent: URL/Emacs
Cookie: JSESSIONID.05b82c0d=node05zkb3yhhjgal1qwipubu55rac7.node0; HttpOnly=nil
Content-Type: application/x-www-form-urlencoded
Authorization: Basic [auth data retracted]
X-Forwarded-Proto: https
X-Forwarded-For: 10.134.10.212
HTTP/1.1 403 No valid crumb was included in the request
<title>Error 403 No valid crumb was included in the request</title>Date: Mon, 12 Mar 2018 20:42:02 GMT
Server: Jetty(9.4.z-SNAPSHOT)
X-Content-Type-Options: nosniff
Cache-Control: must-revalidate,no-cache,no-store
Content-Type: text/html;charset=utf-8
Content-Length: 405
HTTP ERROR 403
Problem accessing /job/manage-pubkeys/build. Reason:
Powered by Jetty:// 9.4.z-SNAPSHOT
The text was updated successfully, but these errors were encountered: