Having the same problem with:
python-jenkins==0.4.14
python3==3.6.0
Jenkins==2.48

I'm creating a job with a xml that I have downloaded from a configured
job and creating it under a new name. I don't have a problem when
creating a job with this parameters:

server.create_job(job_name, jenkins.EMPTY_CONFIG_XML)

-- 
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:
  Expired

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

-- 
Mailing list: https://launchpad.net/~python-jenkins-developers
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~python-jenkins-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to