I managed to create build monitor view directly in the main view of the jenkins with DSL method:
buildMonitorView('UnifiedTest') {
description('All jobs for branchName')
jobs {
regex(/branchName-.+/)
}
}
However not being able to add each created job to an existing view from this structure:
http://<myJenkinsServer>:8080/view/TEST/view/TEST2/view/UnifiedTest/
where TEST and TEST2 are views of type "NestedView" and UnifiedTest is of type "BuildMonitorView"
I need and appreciate your help!
PS I tried many way to to it (via DSL, via jenkins-cli.jar add-job-to-view) but without success :(