How to put jobs inside a folder in jenkins? How to put jobs inside a folder in jenkins? jenkins jenkins

How to put jobs inside a folder in jenkins?


Please refer the below Job-DSL documentation to create a folder in Jenkins through Job-DSL.

Folder

folder('folder-a') {    description('Folder containing all jobs for folder-a')}job('folder-a/job-a') {    // Job config goes here}


Please, take a look at Jenkins filestructure: https://wiki.jenkins-ci.org/display/JENKINS/Administering+Jenkins

Here you can see where jobs are stored by default (job config and build logs). You can not and should not change this filestructure with DSL script (JobDSL plugin).