All languages

Groovy

You're viewing a free preview. Sign in free to read every script.

Why this exists Front end projects (Angular, React and similar) build the same way apart from the package manager. Keeping npm.groovy and yarn.groovy as separate files with an identical interface means the Jenkinsfile…

npm.groovy and yarn.groovy: Node Build Stages

Two stage files for JavaScript projects, each exposing build (install, compile, package) and test (run the suite) as separate methods: npm.groovy and yarn.groovy, called from two separate pipeline stages.

Sign in free to read this script, along with the rest of the library.

Sign in free