INNER CODE UNIT · JavaScript
node
screwdriver-cd/screwdriver · plugins/builds/index.js:310
const node = externalEvent.workflowGraph.nodes.find(n => n.name === trimJobName(nextJobName));
const isNextJobVirtual = node && node.virtual === true;
const nextJobStageName = node ? getNextJobStageName({ stageName: node.stageName, nextJobName }) : null;
const { parentBuilds } = parseJobInfo({
joinObj: joinedPipeline.jobs,
currentBuild,
currentPipeline,
currentJob,
nextJobName,
nextPipelineId: joinedPipelineId
});
let nextBuild;
try {
if (externalEventResource) externalEventLock = await locker.lock(externalEventResource);