// Illustrative excerpt, not a complete deployment pipeline. Save as Jenkinsfile. // Requires a Node.js project with a lockfile and an npm test script. pipeline { agent any stages { stage('Install') { steps { sh 'npm ci' } } stage('Test') { steps { sh 'npm test' } } } }