'How to work with folders in python-jenkins

I am trying simply to list all jobs under a folder (not view) with the python-jenkins package.

I have a structure, say, https://jenkins.xxx.com/job/lvl1/job/lvl2/job/lvl3/..

  1. how can I create a new folder at a specific location, e.g. parallel to lvl2?
  2. how can I list all jobs under a specific folder, say lvl3?

How the folder entity is presented in the python-jenkins package?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source