How to use the screwdriver-logger.warn function in screwdriver-logger

To help you get started, we’ve selected a few screwdriver-logger examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github screwdriver-cd / screwdriver / plugins / webhooks / index.js View on Github external
const ignoreExtraTriggeredPipelines = pipelineTuples.filter((t) => {
        // empty event is not created when it is triggered by extra triggers (e.g. ~tag, ~release)
        if (EXTRA_TRIGGERS.test(t.startFrom) && !hasTriggeredJob(t.pipeline, t.startFrom)) {
            logger.warn(`Event not created: there are no jobs triggered by ${t.startFrom}`);

            return false;
        }

        return true;
    });

screwdriver-logger

Provides common logger for Screwdriver components

BSD-3-Clause
Latest version published 2 years ago

Package Health Score

48 / 100
Full package analysis