INNER CODE UNIT · JavaScript

isExternal

screwdriver-cd/screwdriver · plugins/builds/index.js:503

                const isExternal = +pid !== current.pipeline.id;

                for (const nextJobName of Object.keys(pipelineJoinData[pid].jobs)) {
                    try {
                        const isNextJobStageTeardown = STAGE_TEARDOWN_PATTERN.test(nextJobName);

                        if (!isNextJobStageTeardown) {
                            const nextJob = pipelineJoinData[pid].jobs[nextJobName];

                            buildConfig.jobId = nextJob.id;
                            if (!isExternal) {
                                buildConfig.eventId = event.id;
                            } else {
                                buildConfig.eventId = hoek.reach(pipelineJoinData[pid], 'event.id');
                            }

                            if (buildConfig.eventId) {
                                if (current.stage) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…