title: How to programmatically trigger a specific jenkins build managed via github-organization?
body: <p>I am using the github-organization plugin to manage jenkins jobs from github but I discovered that Jenkins API does not report these builds. </p>
  
  <p>In fact the API list the entire organization as a single job. </p>
  
  <p>How can I build a specific repository and branch using the API?</p>
  
  <p>To be clear, I am looking for some groovy code to add inside the <code>Jenkinsfile</code></p>
  
  <pre><code>#!groovy
  
  stage 'test-downstream'
  node {
      def job = build job: 'some-job'
  }
  </code></pre>
  
  <p>Now, the problem is that Jenkins is seeing the entire organization as a single job! </p>
  
  <p>If I use Jenkins API to retrieve the jobs, it will return only the organization, and not all the repositories and jobs inside it.</p>
  
  <p>I suspect that's because the way this plugin was implemented and I suppose that I need to give some extra parameters in order to specify which repository and branch I want to build inside the organization.... building an organization does not make much sense.</p>