How can I access the jobs of a user-specific view of a Jenkins Server using Groovy?
<p>I currently have the situation that I need to trigger all jobs in status "icon-red" on a Jenkins server, which are selected by a given <em>user</em>-specific view (my-views). The problem is that the list is very long, and we don't want to trigger them all manually. 
That is why I came to the idea of using a Groovy script (Jenkins' Script Console).</p>

<p>I am able to trigger all red jobs of a given <em>global</em> view with coding like this:</p>

<pre><code>def viewName = "globalviewname"
def jobsToBuild = Jenkins.instance.getView(viewName).items.findAll { job -&gt;
    job.getBuildStatusIconClassName() == "icon-red"
}

jobsToBuild.each { job -&gt;
    println "Scheduling matching job ${job.name}"
    job.scheduleBuild(new Cause.UserIdCause())
}
</code></pre>

<p>However, I am lacking the way how to access the current user's view (would become a parameter later on): A call to</p>

<p><code>Jenkins.instance.getViews()</code></p>

<p>just provides a List of all global views only. I am currently playing around with </p>

<p><code>Jenkins.instance.getMyViewsTabBar()</code></p>

<p>(see also <a href="http://javadoc.jenkins-ci.org/jenkins/model/Jenkins.html#getMyViewsTabBar()" rel="nofollow">http://javadoc.jenkins-ci.org/jenkins/model/Jenkins.html#getMyViewsTabBar()</a>), but apparently I do not get the hang of it.</p>

<p>Any clue how to access the list of items associated with user-specific list views?</p>