Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52700

Need help creating jobs in Jenkins using Python

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • _unsorted
    • None

      Hi,

      Im new to jenkins

      Im creating a python script (attched try.py) which calls my jenkins api and the aim is to create a job using- create_job('testapi',jenkins.EMPTY_CONFIG_FILE)

      my python script connects to my jenkins successfully

      But the point where im stuck in right now is below

      Im not sure how to pass the xml file to the python script

      I get errors when I do it

      Please see the errors (error.txt) and files (try.py and new.xml)attached

      -----------------

      Please help

        1. error.txt
          17 kB
        2. new.xml
          0.7 kB
        3. try.py
          0.2 kB

            oleg_nenashev Oleg Nenashev
            kartikmoolya1994 Kartik Moolya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: