Rename `previousStageJobsAndNeeds` to `previousStageJobsOrNeeds` and update return
In order to correctly show the execution order of jobs, we should update previousStageJobsAndNeeds
with some requirements that we need.
- Rename field to
previousStageJobsOrNeeds
to better describe what we are returning - Return
previousStageJobsOrNeeds: [someNeed]
if there are explicit needsneeds: [someNeed]
- so ONLY the explicit needs. - Return empty
previousStageJobsOrNeeds: []
if there are needs stated with an empty arrayneeds: []
- Return the jobs from previous stages for a build that has NO needs
previousStageJobsOrNeeds: [prevstagejob1, prevstagejob2]
Edited by Laura Montemayor