title: Disable Jenkins Job from Another Job
body: <p>Is there a way in Jenkins (Hudson) to disable a job from another job?</p>
  
  <p>Basically we have a build environment that does the standard building/testing. We also use the same Jenkins instance to do some other stuff like install new versions of our product automatically (which is needed for some of the automated tests).  When we are running some of the "extra" jobs, we want to disable the "standard" jobs temporarily (and then automatically enable them later).</p>
  
  <p>Ideally there would be some extra build step on a job to say "Disable XYZ job".  Or if there is a way through ANT or something to tell Jenkins to disable a job, that would work too.</p>
  
  <p><strong>Update:</strong>
  It looks like there are a couple plugins that will prevent two jobs from running at the same time, but I really need to:</p>
  
  <ol>
  <li>Run job A which disables job 1 </li>
  <li>Do some stuff outside of Jenkins based on output of job A</li>
  <li>Run job B which which enable job 1 again</li>
  </ol>