title: Is it possible to use Jenkins server to run custom tasks one by one?
body: <p>Is it possible to use Jenkins server to run custom tasks one by one? </p>
  
  <p>By task I mean to execute an external groovy program which designed as an independent performance and integration test for specific deployment.</p>
  
  <p>If it is possible then how to:</p>
  
  <ol>
  <li>To define tasks in Jenkins and group them so they can start by starting a group.</li>
  <li>To see an output of each task (output log).</li>
  <li>If there is a specific outcome like "-1" then stop execution of the whole group.</li>
  </ol>
  
  <p>And all this should start automatically after software has been built and deployed.</p>
  
  <p>I feel there has to be a way to do it with Jenkins utilising its out-of-the-box functionality, just not sure how. Or I am wrong and we are looking at custom plugin as a solution?</p>
  
  <p>Thanks a lot!</p>
  
  <p>P.S. I am not asking for detailed answer, just a general direction would be Ok. Also Jenkins is not a requirement, it can be another similar CI server.</p>