title: How to define rules in gitlab "stages" so that no need to define separate rules for jobs
body: <p>Suppose there are 4 jobs are define in stages .</p>
  <p>stages:</p>
  <ul>
  <li>build</li>
  <li>test</li>
  <li>deploy</li>
  <li>upload</li>
  </ul>
  <p>Now <strong>test, deploy and upload</strong> only run when pipeline trigger manually. We can define rule on separate jobs for this but it will be repetitive.(do not want to use that)</p>
  <p>Is it possible to define rule on &quot;<strong>stages</strong>&quot; so that one job will run on automatic trigger and rest 3 job will run on manual trigger of pipeline.</p>