python-jenkins-developers team mailing list archive
-
python-jenkins-developers team
-
Mailing list archive
-
Message #00304
[Bug 1530862] Re: create_job fails
could you please provide version of jenkins and ython-jenkins you are
using? Does this only fail when create new job from an existing one?
or does it also fail when new create from new xml file? Can you create
jobs any other way?
Also have you tried to using your api token to authenticate instead of
AD? info on how to do that can be found at bottom of example 1: https
://python-
jenkins.readthedocs.org/en/latest/examples.html?highlight=token#example-1
-get-version-of-jenkins
** Changed in: python-jenkins
Status: New => Incomplete
--
You received this bug notification because you are a member of Python
Jenkins Developers, which is subscribed to Python Jenkins.
https://bugs.launchpad.net/bugs/1530862
Title:
create_job fails
Status in Python Jenkins:
Incomplete
Bug description:
When I try to create new job from an existing xml file (downloaded from another job) I get the following error
"Error in request. Possibly authentication failed [500]: Server Error"
I use login through AD
method copy job works ok
I can see that DEFAULT_HEADERS is {'Content-Type': 'text/xml;
charset=utf-8'} but according to jenkins api REST it should be
application/xml for creat job
I have tried to change it to this but with no success
To manage notifications about this bug go to:
https://bugs.launchpad.net/python-jenkins/+bug/1530862/+subscriptions
References